Re: Trigger to run @ connection time?

Поиск
Список
Период
Сортировка
"Kynn Jones" <kynnjo@gmail.com> writes:
> If one can set up this insert operation so that it happens automatically
> whenever a new connection is made, I'd like to learn how it's done.

For manual psql sessions, you can put some setup commands in ~/.psqlrc.
In any other context I'm afraid you're stuck with modifying your client
application code.

An ON CONNECT trigger enforced by the database seems a bit scary to me.
If it's broken, how you gonna get into the DB to fix it?

            regards, tom lane

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

Предыдущее
От: "Rob Wultsch"
Дата:
Сообщение: Re: postgre vs MySQL
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: How to convert postgres timestamp to date: yyyy-mm-dd