Regarding Postgresql Transaction isolation - Mailing list pgsql-hackers

From Ajay P S
Subject Regarding Postgresql Transaction isolation
Date
Msg-id CAHjjAw3ihKDz1UHrC8FuUgHnqGr=66MC79RXVaGhEW8z=qv-rg@mail.gmail.com
Whole thread Raw
Responses Re: Regarding Postgresql Transaction isolation
List 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



pgsql-hackers by date:

Previous
From: Alena Rybakina
Date:
Subject: Re: A new strategy for pull-up correlated ANY_SUBLINK
Next
From: David Rowley
Date:
Subject: Re: Add null termination to string received in parallel apply worker