Re: Moving several databases into one database with several schemas

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Edson Richter *EXTERN*" <edsonrichter(at)hotmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Moving several databases into one database with several schemas
Date: 2012-09-06 12:21:23
Message-ID: D960CB61B694CF459DCFB4B0128514C208624CE7@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edson Richter wrote:
>>> 2) Is there a way to specify the default schema in JDBC url
>>> (or command I can issue to change
>>> the default schema at runtime, like "set path...")?

>> SET search_path=schema1,schema2,public;

> Problem is that my application uses JDBC and Connection Pooling. After
a
> connection is closed, I'll have to set search path again, and again...
> Nevertheless, connection pool allows me to have one command to test is
> connection is available, I'll try to put SET search_path on there, and
> see results.

I see.
You could change the default setting for the user with

ALTER ROLE someuser SET search_path=...

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edson Richter 2012-09-06 12:29:24 Re: "Too far out of the mainstream"
Previous Message Edson Richter 2012-09-06 12:03:32 Re: Moving several databases into one database with several schemas