pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Neil Conway <neilc@samurai.com>
Cc: Will LaShell <will@lashell.net>
Cc: Hannu Krosing <hannu@tm.ee>
Cc: Christopher Browne <cbbrowne@acm.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: start of transaction (was: Re: [PERFORM] Help with count(*))
Date: Sun, 16 Nov 2003 19:08:24 -0500
Message-ID: <3798.1069027704@sss.pgh.pa.us> (raw)
In-Reply-To: <87n0avaonp.fsf@mailbox.samurai.com>
References: <200311141251.38786.mallah@trade-india.com>
	<m3ad6zkpgj.fsf@wolfe.cbbrowne.com>
	<1068831807.2540.44.camel@fuji.krosing.net>
	<3FB52FA7.8060508@lashell.net>
	<4987.1068842326@sss.pgh.pa.us>
	<87isllbcys.fsf@mailbox.samurai.com>
	<26338.1068996163@sss.pgh.pa.us>
	<87n0avaonp.fsf@mailbox.samurai.com>

Neil Conway <neilc@samurai.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



view thread (13+ messages)  latest in thread

Message-ID: <3798.1069027704@sss.pgh.pa.us>
Permalink:  ../3798.1069027704@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3798.1069027704@sss.pgh.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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, neilc@samurai.com, will@lashell.net, hannu@tm.ee, cbbrowne@acm.org, pgsql-hackers@postgresql.org
  Subject: Re: start of transaction (was: Re: [PERFORM] Help with count(*))
  In-Reply-To: <3798.1069027704@sss.pgh.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