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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: session id and global storage



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




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group