Re: Unique ID for current connection from C

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

--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

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

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John DeSoi 2005-07-20 00:00:34 Re: Hosting
Previous Message operationsengineer1 2005-07-19 21:25:55 Re: Hosting