public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: Repeatable Read Isolation Level "transaction start time"
Date: Wed, 25 Sep 2024 17:16:19 -0400
Message-ID: <CANzqJaCn2ueCeoiH04ipGRKXQzfaaT+kE_GU7EoJ62bVEh8OsQ@mail.gmail.com> (raw)
In-Reply-To: <CAKAnmmL05Lt89EOnMW111qdUOau+dYG7u8ff5o+ckKKohnNwGg@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>
<CANzqJaAAQFD_JvK=ChmfdGCRNP0G5gMtVBgF52bZiFjQxH8N_Q@mail.gmail.com>
<CAKAnmmL05Lt89EOnMW111qdUOau+dYG7u8ff5o+ckKKohnNwGg@mail.gmail.com>
On Wed, Sep 25, 2024 at 4:50 PM Greg Sabino Mullane <[email protected]>
wrote:
> 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"?
>>>
>>
> I don't know that it really matters. For something automated, it would be
> a few milliseconds.
>
That's what I'm thinking, too. It might cause a problem if you're typing
transaction commands in between drinking coffee and poking around other
PgAdmin tabs, but that's *your* fault, not PG's fault.
> Either way, I'm sure most people/apps already think of the initial 'BEGIN
> ...' as the start of the transaction, and act accordingly.
>
> Maybe long-term something like
>
> BEGIN ISOLATION MODE REPEATABLE READ SNAPSHOT NOW;
>
Without the "NOW", that's essentially the command used by the legacy rdbms
which I used to work on.
I'm trying to remember, though, if "SET TRANSACTION READ WRITE RESERVING
foo FOR <isolation level>;" (it's syntax for beginning a transaction)
started the transaction, or waited until an "action" statement. Been too
long.
--
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]
Subject: Re: Repeatable Read Isolation Level "transaction start time"
In-Reply-To: <CANzqJaCn2ueCeoiH04ipGRKXQzfaaT+kE_GU7EoJ62bVEh8OsQ@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