Re: Unique ID for current connection from C

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Shawn Garbett <shawn_garbett(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Unique ID for current connection from C
Date: 2005-07-19 20:01:30
Message-ID: 9114.1121803290@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Shawn Garbett <shawn_garbett(at)yahoo(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Marc G. Fournier 2005-07-19 20:37:23 Re: Hosting
Previous Message Derrick Betts 2005-07-19 19:56:19 Re: Hosting