Re: Moving several databases into one database with several schemas

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving several databases into one database with several schemas
Date: 2012-09-06 18:40:28
Message-ID: 5048EE1C.2040907@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/06/12 5:30 AM, Edson Richter wrote:
>> You could change the default setting for the user with
>>
>> ALTER ROLE someuser SET search_path=...
> That is perfect! I can have separate users for each application, and
> then they will have the correct search path.
> You saved my day,

the default search_path is $USER,public, so by naming your schema's to
the usernames, you don't even need to alter role...

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Willy-Bas Loos 2012-09-06 18:41:51 Re: return text from explain
Previous Message Misa Simic 2012-09-06 18:37:50 Re: pivot functions with variable number of columns