Re: SessionID, pretty please

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tom(dot)darci(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SessionID, pretty please
Date: 2006-06-08 20:22:21
Message-ID: 859.1149798141@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tom(dot)darci(at)gmail(dot)com writes:
> My troubles would be solved if I could reference a SessionID from
> within PG. Any hope?

Create a sequence. At session start, nextval() it to assign a session
ID for your session. Then currval() returns your session ID whenever
you need it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthew T. O'Connor 2006-06-08 20:42:19 Re: UTF8 problem
Previous Message Bricklen Anderson 2006-06-08 19:56:20 Re: ERROR: for SELECT DISTINCT, ORDER BY expressions must