Re: Unique ID for current connection from C - Mailing list pgsql-novice

From Tom Lane
Subject Re: Unique ID for current connection from C
Date
Msg-id 9114.1121803290@sss.pgh.pa.us
Whole thread Raw
In response to Unique ID for current connection from C  (Shawn Garbett <shawn_garbett@yahoo.com>)
Responses Re: Unique ID for current connection from C
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Hosting
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Hosting