Re: [PATCHES] log session end - again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] log session end - again
Дата
Msg-id 19327.1075827366@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] log session end - again  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [PATCHES] log session end - again  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Andrew Dunstan wrote:
>> Bruce and others have suggested that PID is not sufficiently unique.
> The nice things about using xid for session id is that is is unique for
> a long time, rather than pid.

Hmm.  Now that I think about it, InitPostgres() always runs a
transaction during backend startup.  If we simply saved aside the XID
assigned to that transaction, it would cost next to nothing to do and
would provide a reasonably unique ID.  However, this happens much later
than the postmaster currently prints the log_connection message ...
        regards, tom lane


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Why has postmaster shutdown gotten so slow?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_restore bug in 7.4.1 ?