From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] log session end - again |
Date: | 2004-02-03 16:14:34 |
Message-ID: | 200402031614.i13GEY310454@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Andrew Dunstan wrote:
> Tom Lane said:
> > Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> >> I'm not sure I understand. I didn't suggest that a sequence should be
> >> used for txn ids. For the purpose I had in mind we would call
> >> nextval() once per connection,
> >
> > Oh, okay, I misunderstood. But why not just use the PID?
> >
>
> Bruce and others have suggested that PID is not sufficiently unique.
> Personally, I can live with it :-)
The nice things about using xid for session id is that is is unique for
a long time, rather than pid.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-03 16:26:03 | Re: Idea about better configuration options for sort memory |
Previous Message | Bruce Momjian | 2004-02-03 16:12:49 | Re: Idea about better configuration options for sort memory |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-02-03 16:26:34 | Re: fix memcpy() overlap |
Previous Message | Andrew Dunstan | 2004-02-03 16:12:03 | Re: session IDs |