Regarding Postgresql Transaction isolation

From: Ajay P S <ajayps547(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Regarding Postgresql Transaction isolation
Date: 2023-10-11 21:30:33
Message-ID: CAHjjAw3ihKDz1UHrC8FuUgHnqGr=66MC79RXVaGhEW8z=qv-rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I understand that in READ COMMITTED isolation level, SELECT queries
reads a snapshot of the database as of the instant the query begins.
And also a concurrent transaction(uncommitted) writing to the same
table won't block the readers.
However, I see that in the heap_update(heapam.c) function there is a
brief interval(Lock and unlock the buffer) where a writer may block
readers if the writer is updating the same row which readers are
reading.
Could anyone please help me with the below query?

1) Is my understanding correct? In so, Is it not against the
statements "readers does not block writers and writers does not block
readers"

Best,
Ajay

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-10-11 21:39:26 Re: Add null termination to string received in parallel apply worker
Previous Message Alena Rybakina 2023-10-11 21:01:37 Re: A new strategy for pull-up correlated ANY_SUBLINK