1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-29 15:58:33 +03:00
Files
postgres/src/include
Tom Lane 6e9e5681b8 Avoid waiting for a safe snapshot in notify-reading transactions.
In the perhaps-unlikely scenario where your session default settings
specify read-only, deferrable, serializable transactions, the implicit
transaction created by ProcessIncomingNotify() honored those settings
and would wait for a safe snapshot to be creatable; thereby getting
blocked by any long-running concurrent transaction.  This is a bit
surprising, especially if you think you are committing a transaction
that doesn't have those properties.

There doesn't seem to be any good semantic reason for NOTIFY reporting
to wait for a safe snapshot, so create a code pathway that lets it
just get a plain snapshot, independently of transaction mode.

Given the lack of field complaints about such issues, I don't feel a
need to back-patch this.

Author: shihao zhong <zhong950419@gmail.com>
Co-authored-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAGRkXqQ1bmVwBw2CXiyZeWWP=XkHPXLPcQ7BSg2Q5JKSvDAnTA@mail.gmail.com
2026-10-26 13:01:59 -04:00
..
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-09-17 16:50:44 +09:00
2026-01-01 13:24:10 -05:00
2026-07-13 11:06:03 +02:00
2026-07-25 19:16:42 +02:00
2026-03-30 16:12:08 -05:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-07-13 11:06:03 +02:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00