Re: session_id

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: session_id
Дата
Msg-id 200411220431.iAM4V2V10588@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: session_id  ("Riccardo G. Facchini" <abief_ag_-postgresql@yahoo.com>)
Список pgsql-sql
Riccardo G. Facchini wrote:
> No, I can't provide it because your'e right. currval() is NOT affected
> by other sessions.
> 
> Thanks anyway for the suggestion, using pg_backend_pid() solved the
> uniqueness I needed. I'll keep the nextval/currval for another
> opportunity.

FYI, we needed a unique-through-time session id for the log_line_prefix
so we used the seconds-since-1970-dot-pid.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Mischa Sandberg
Дата:
Сообщение: Re: SQL Question
Следующее
От: sreejith s
Дата:
Сообщение: Doubt :- Image_Insert