Re: DBs and Schemas

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: DBs and Schemas
Дата
Msg-id 1073428061.25138.1591.camel@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Re: DBs and Schemas  (Adam Ruth <aruth@intercation.com>)
Ответы Re: DBs and Schemas  ("Roderick A. Anderson" <raanders@acm.org>)
Re: DBs and Schemas  (Adam Ruth <aruth@intercation.com>)
Список pgsql-general
On Tue, 2004-01-06 at 22:06, Adam Ruth wrote:
> > 1. Modifying the applications to use schemas instead of connecting to
> >    specific databases.  Getting the authors to use schemas so I do it
> >    once.
>
> One thing I'd suggest would be to modify the application to issue a
> "set search_path = yourschema;" at the beginning, then the rest of the
> application wouldn't need to change.  That's what I did when I did
> something similar.

You can use ALTER DATABASE to set that up permanently, without touching
the application.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Thou shalt not avenge, nor bear any grudge against the
      children of thy people, but thou shalt love thy
      neighbour as thyself. I am the LORD."
                                 Leviticus 19:18


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

Предыдущее
От: Adam Ruth
Дата:
Сообщение: Re: DBs and Schemas
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Date column that defaults to 'now'