Re: Feature request: Per database search_path

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Francisco Reyes <lists(at)stringsutils(dot)com>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Feature request: Per database search_path
Date: 2007-07-20 21:35:54
Message-ID: 20070720213554.GG39272@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 18, 2007 at 11:02:51PM +0100, Richard Huxton wrote:
> Francisco Reyes wrote:
> >As far as I know, currently one can set the search path globally, or on
> >a per role bases.
> >
> >I was wondering if it could be possible to have a per database search_path.
> >I believe this would be not only convenient, but will add flexibility.
>
>
> ALTER DATABASE leia SET search_path = public,lookups;
>
> Seems to work for me on 8.2 - you'll need to disconnect and reconnect to
> see it take place though.

BTW, in case it's not obvious, that works with pretty much anything that
session-setable. Same with ALTER ROLE ... SET.
--
Jim Nasby decibel(at)decibel(dot)org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mitchell Vincent 2007-07-20 22:24:03 PGInstaller Project
Previous Message Prerna Mamgain 2007-07-20 21:30:05 Re: OSCON Booth volunteers