From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | Will LaShell <will(at)lashell(dot)net>, Hannu Krosing <hannu(at)tm(dot)ee>, Christopher Browne <cbbrowne(at)acm(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: start of transaction (was: Re: [PERFORM] Help with count(*)) |
Date: | 2003-11-17 00:08:24 |
Message-ID: | 3798.1069027704@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Neil Conway <neilc(at)samurai(dot)com> writes:
> Hmmm... I agree this behavior isn't ideal, although I can see the case
> for viewing this as a mistake by the application developer: they are
> assuming that they know exactly when transactions begin, which is not
> a feature provided by their language interface.
Well, actually, it's a bug in the interface IMHO. But as I said in the
last thread, it's a fairly widespread bug. We've been taking the
position that the interface libraries should get fixed, and that's not
happening. It's probably time to look at a server-side fix.
> If we do change this, I think Dennis' idea of making now() always
> return the same value within a given transaction is interesting:
You mean the time of the first now() call? I thought that was an
interesting idea also, but it's probably not going to look so hot
when we complete the TODO item of adding access to
the start-of-current-statement time. Having start-of-transaction be
later than start-of-statement isn't gonna fly :-(. If we were willing
to abandon that TODO item then I'd be interested in defining now() as
Dennis suggested.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-11-17 00:31:13 | Re: start of transaction (was: Re: [PERFORM] Help with count(*)) |
Previous Message | Neil Conway | 2003-11-16 23:18:02 | start of transaction (was: Re: [PERFORM] Help with count(*)) |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-11-17 00:31:13 | Re: start of transaction (was: Re: [PERFORM] Help with count(*)) |
Previous Message | Neil Conway | 2003-11-16 23:18:02 | start of transaction (was: Re: [PERFORM] Help with count(*)) |