Skip site navigation (1) Skip section navigation (2)

Re: session id and global storage

From: David Hoksza <david(dot)hoksza(at)seznam(dot)cz>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: session id and global storage
Date: 2006-06-01 08:10:38
Message-ID: 305010524.20060601101038@seznam.cz (view raw or flat)
Thread:
Lists: pgsql-hackers
It seems MyProcID is what I was searching for...

David Hoksza
________________________________

DH> Something like this would be maybe possible, but this select can
DH> return more rows, when the user is connected with more instances...

DH> David Hoksza

DH> ________________________________

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


DH> ---------------------------(end of
DH> broadcast)---------------------------
DH> TIP 5: don't forget to increase your free space map settings


In response to

Responses

pgsql-hackers by date

Next:From: Dawid KuroczkoDate: 2006-06-01 08:42:41
Subject: Re: Possible TODO item: copy to/from pipe
Previous:From: Martijn van OosterhoutDate: 2006-06-01 06:47:06
Subject: Re: [PATCH] Improve EXPLAIN ANALYZE overhead by sampling

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group