Re: session id and global storage - Mailing list pgsql-hackers

From David Hoksza
Subject Re: session id and global storage
Date
Msg-id 7210025554.20060601001028@seznam.cz
Whole thread Raw
In response to session id and global storage  (David Hoksza <david.hoksza@seznam.cz>)
Responses Re: session id and global storage  (David Hoksza <david.hoksza@seznam.cz>)
List pgsql-hackers
Something like this would be maybe possible, but this select can
return more rows, when the user is connected with more instances...

David Hoksza

________________________________

>> Hi, I cant find any function, which tells me something like session
>> id. Is there something like that? I need it in my AM, because I need
>> to know, if something which I wrote in file was written in this
>> current session or previously.

AL> How about

AL> select procpid||' '||backend_start from pg_stat_activity;

AL> Yours,
AL> Laurenz Albe



pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Possible TODO item: copy to/from pipe
Next
From: Ali Baba
Date:
Subject: server crash on recursive function invocation