Re: Unique ID for current connection from C

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unique ID for current connection from C
Дата
Msg-id 9114.1121803290@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unique ID for current connection from C  (Shawn Garbett <shawn_garbett@yahoo.com>)
Ответы Re: Unique ID for current connection from C  (Shawn Garbett <shawn_garbett@yahoo.com>)
Список pgsql-novice
Shawn Garbett <shawn_garbett@yahoo.com> writes:
> I am exploring writing an extension in C to Postgres,
> but I can't find how to get a unique number
> identifying the current connection.

There isn't a globally unique number.  If you're satisfied with
something unique among active connections, I'd suggest backend PID.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Hosting
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Hosting