Re: SessionID, pretty please - Mailing list pgsql-general

From Tom D
Subject Re: SessionID, pretty please
Date
Msg-id 1149802824.246500.182550@y43g2000cwc.googlegroups.com
Whole thread Raw
In response to Re: SessionID, pretty please  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
thanks.

Tom Lane wrote:
> tom.darci@gmail.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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly


pgsql-general by date:

Previous
From: "pobox@verysmall.org"
Date:
Subject: Re: 010.pgsql.sh does not react
Next
From: Alban Hertroys
Date:
Subject: Re: 010.pgsql.sh does not react