Re: Unique ID for current connection from C

Поиск
Список
Период
Сортировка
От Shawn Garbett
Тема Re: Unique ID for current connection from C
Дата
Msg-id 20050719213226.66348.qmail@web54406.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Unique ID for current connection from C  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

> 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.

That'll do it! Thanks, the alternatives to this
approach take many thousands of lins of code.

Shawn

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

Предыдущее
От:
Дата:
Сообщение: Re: Hosting
Следующее
От: John DeSoi
Дата:
Сообщение: Re: Hosting