Re: init script or procedure

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: init script or procedure
Дата
Msg-id CAHyXU0wOhqMzV0vzErHwi7kcubjqcz4TepNzgX9Khe63Yj5cXQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: init script or procedure  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: init script or procedure  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
On Wed, Aug 24, 2011 at 9:30 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hello
>
> 2011/8/24 Gauthier, Dave <dave.gauthier@intel.com>:
>> Does PG support the use of an init script or procedure?  I'm looking for
>> something that'll run unconditionally every time someone makes a DB
>> connection.  This script will create a temp table and stuff some data in it
>> for general use within that session.
>>
>
> no, there is nothing similar. You have to call a own procedure after
> login explicitly

We could really use this.   It's kinda sorta possible to script SQL on
connection close via C hook through dblink but not on session startup.
It's not always possible for the client know when a backend session is
fired up -- for example in connection pools.

merlin

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: init script or procedure
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: strange exclusive lock in relation --- ideas