Re: postgres 9.3

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgres 9.3
Date: 2015-09-21 19:33:26
Message-ID: CANu8FixzcRn8PBzfLERkQSpeO6EgjWnV+BW6VixdtfdbUUf5UQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You are correct John, but in this case, he stated only one (1) database. So
changing the search path in .postgresql.conf simplifies things for all
users.
However, should he create additional databases later on, then yes, your
solution would be better.

On Mon, Sep 21, 2015 at 3:08 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> John R Pierce wrote:
>
> > better would be to...
> >
> > ALTER ROLE username SET SEARCH_PATH='preview,"$user", public';
> > or
> > ALTER DATABASE dbname SET...;
> >
> > and then this change just applies to that named role or database...
>
> (or
> ALTER ROLE username IN DATABASE dbname SET ..
> which applies to the specified role in the specified database)
>
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2015-09-21 20:17:52 md5(large_object_id)
Previous Message Alvaro Herrera 2015-09-21 19:08:48 Re: postgres 9.3