pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Riccardo G. Facchini <abief_ag_-postgresql@yahoo.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Richard Huxton <dev@archonet.com>
Cc: abief_ag_-postgresql@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: session_id
Date: Wed, 17 Nov 2004 06:27:32 -0800 (PST)
Message-ID: <20041117142732.60975.qmail@web13912.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0411171629170.8373-100000@matrix.gatewaynet.com>


--- Achilleus Mantzios <__> wrote:

> O Richard Huxton Ýãñáøå óôéò Nov 17, 2004 :
> 
> > Riccardo G. Facchini wrote:
> > > hi all,
> > > 
> > > is there a way to determine the session id on a database session?
> > > 
> > > I would need to have a unique number whenever a session is
> started, and
> > > have this available as a function or view result.
> 
> Why not SELECT pg_backend_pid();
> ??
> 
> > 
[..]

that could work. Is this the unique value for my own session? can
somebody confirm it?

regards,

R.




view thread (11+ messages)  latest in thread

Message-ID: <20041117142732.60975.qmail@web13912.mail.yahoo.com>
Permalink:  ../20041117142732.60975.qmail@web13912.mail.yahoo.com/
Also on:    postgresql.org/message-id/20041117142732.60975.qmail@web13912.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: abief_ag_-postgresql@yahoo.com, achill@matrix.gatewaynet.com, dev@archonet.com
  Subject: Re: session_id
  In-Reply-To: <20041117142732.60975.qmail@web13912.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox