Unique Session ID in PGSQL?

From: Durumdara <durumdara(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Unique Session ID in PGSQL?
Date: 2011-05-18 12:23:54
Message-ID: BANLkTinSfaOa5arP+11g-w=FceJdaD3QEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

Is there any function in PGSQL that returns an unique Session
identifier of the actual session?
For example a Bigint, or GUID, or etc?
Can I get the living Session identifiers from PG?

We have a little application that uses these infos which are basically
came from another database system, and I will port this, but I don't
know, how to do in PGSQL...
In this app. we associated (stored) the session id to a special field
in some tables.
We can retreive the living session ids with a system functions.

If a session died, these records have become irrelevant - we can
delete them. If the session still alive, we don't touch them, only can
read the content...

I see adv_locks in pg, but because the quantity of locks are
pre-determined by the server, I don't choose them.
I better like a technic that cannot exhaust the number of persistent elements.

Thanks:
dd

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2011-05-18 13:08:46 Re: Unique Session ID in PGSQL?
Previous Message G. P. 2011-05-18 11:31:43 Re: re-install postgres/postGIS without Loosing data??