From: Neil Conway <neilc@samurai.com>
To: Hannu Krosing <hannu@tm.ee>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Will LaShell <will@lashell.net>
Cc: Christopher Browne <cbbrowne@acm.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: start of transaction (was: Re: [PERFORM] Help with count(*))
Date: Sun, 16 Nov 2003 17:55:41 -0500
Message-ID: <873ccnc49e.fsf@mailbox.samurai.com> (raw)
In-Reply-To: <1068983887.17671.10.camel@fuji.krosing.net>
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>
<1068983887.17671.10.camel@fuji.krosing.net>
Hannu Krosing <hannu@tm.ee> writes:
> For me, the "start of transaction" is not about time, but about grouping
> a set of statements into one. So making the exact moment of "start" be
> the first statement that actually does something with data seems
> perfectly reasonable.
This might be a perfectly logical change in semantics, but what
benefit does it provide over the old way of doing things?
What does BEGIN actually do now, from a user's perspective? At
present, it "starts a transaction block", which is pretty simple. If
we adopted the proposed change, it would "change the state of the
system so that the next command is part of a new transaction". This is
naturally more complex; but more importantly, what benefit does it
ACTUALLY provide to the user?
(I can't see one, but perhaps I'm missing something...)
> Delaying the locking effects of transactions as long as possible can
> increase performance overall, not just for pathological clients that sit
> on idle open transactions.
I agree, but this is irrelevant to the semantics of now().
-Neil
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: neilc@samurai.com, hannu@tm.ee, tgl@sss.pgh.pa.us, will@lashell.net, cbbrowne@acm.org, pgsql-hackers@postgresql.org
Subject: Re: start of transaction (was: Re: [PERFORM] Help with count(*))
In-Reply-To: <873ccnc49e.fsf@mailbox.samurai.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