Re: on connect/on disconnect

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: on connect/on disconnect
Дата
Msg-id 45053C4B.5010208@logix-tt.com
обсуждение исходный текст
Ответ на Re: on connect/on disconnect  (Robert Edwards <bob@cs.anu.edu.au>)
Список pgsql-sql
Hi, Robert,

Robert Edwards wrote:

> Or is it possible, over the same connection, to change the database
> user? My understanding of the frontend/backend protocol is that this
> is not allowed.

Not on protocol level, but one level higher.
 SET SESSION AUTHORIZATION <user>;

pg_dump uses this frequently. See the docs for more details.
http://www.postgresql.org/docs/8.1/interactive/sql-set-session-authorization.html

HTH,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org


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

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: on connect/on disconnect
Следующее
От: Jorge Godoy
Дата:
Сообщение: Re: on connect/on disconnect