Re: session id and global storage

From: David Hoksza <david(dot)hoksza(at)seznam(dot)cz>
To: Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: session id and global storage
Date: 2006-05-31 22:10:28
Message-ID: 7210025554.20060601001028@seznam.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-06-01 00:27:24 Re: server crash on recursive function invocation
Previous Message Tom Lane 2006-05-31 22:02:52 Re: [HACKERS] psql \copy warning