Re: Feature request: Per database search_path

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Feature request: Per database search_path
Дата
Msg-id 20070720213554.GG39272@nasby.net
обсуждение исходный текст
Ответ на Re: Feature request: Per database search_path  (Richard Huxton <dev@archonet.com>)
Список 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@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Reminder: PostgreSQL PDXPGDay + PostgreSQL Party
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index