pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: abief_ag_-postgresql@yahoo.com
Cc: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: session_id
Date: Sun, 21 Nov 2004 23:31:02 -0500 (EST)
Message-ID: <200411220431.iAM4V2V10588@candle.pha.pa.us> (raw)
In-Reply-To: <20041118123831.5789.qmail@web13925.mail.yahoo.com>

Riccardo G. Facchini wrote:
> No, I can't provide it because your'e right. currval() is NOT affected
> by other sessions.
> 
> Thanks anyway for the suggestion, using pg_backend_pid() solved the
> uniqueness I needed. I'll keep the nextval/currval for another
> opportunity.

FYI, we needed a unique-through-time session id for the log_line_prefix
so we used the seconds-since-1970-dot-pid.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (11+ messages)

Message-ID: <200411220431.iAM4V2V10588@candle.pha.pa.us>
Permalink:  ../200411220431.iAM4V2V10588@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200411220431.iAM4V2V10588@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, abief_ag_-postgresql@yahoo.com, mike@fuhr.org
  Subject: Re: session_id
  In-Reply-To: <200411220431.iAM4V2V10588@candle.pha.pa.us>

* 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