public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Repeatable Read Isolation Level "transaction start time"
Date: Wed, 25 Sep 2024 16:36:20 -0400
Message-ID: <CANzqJaAAQFD_JvK=ChmfdGCRNP0G5gMtVBgF52bZiFjQxH8N_Q@mail.gmail.com> (raw)
In-Reply-To: <CAKAnmmLDpwgqu071t_Q7Fq349dYAgQim1x46U1DCAiiTcUmU2A@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<CAKAnmmLt2ezcf7-LgJkO_oeqK+Ei+XB6F3pHk2mnyadRq3corQ@mail.gmail.com>
	<[email protected]>
	<CANzqJaBjwtzLg_bZHkokUJbtA8gy6RpHjirfdBH9OJGfn5=tmw@mail.gmail.com>
	<[email protected]>
	<CAKAnmmLDpwgqu071t_Q7Fq349dYAgQim1x46U1DCAiiTcUmU2A@mail.gmail.com>

On Wed, Sep 25, 2024 at 4:23 PM Greg Sabino Mullane <[email protected]>
wrote:

> On Wed, Sep 25, 2024 at 1:53 PM Tom Lane <[email protected]> wrote:
>
>> Because we're not going to analyze the statement in the amount of depth
>> needed to make that distinction before we crank up the
>> transactional machinery.  If it says SELECT, it gets a snapshot.
>>
>
> Ok, thanks. So to the original poster's point, perhaps the path with the
> least side effects / best Principle of Least Surprise (POLS) support is to
> start the transaction, and immediately call a "SELECT 1;" or perhaps better
> still, a 'SELECT timeofday();'
>

Since transactions should be "as short as possible, without being too
short", how much time is there between when you run "BEGIN;" and the first
"work statement"?

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> crustacean!


view thread (11+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Repeatable Read Isolation Level "transaction start time"
  In-Reply-To: <CANzqJaAAQFD_JvK=ChmfdGCRNP0G5gMtVBgF52bZiFjQxH8N_Q@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox