Re: BUG #14830: Missed NOTIFications, PostgreSQL 9.1.24
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Marko Tiikkaja <marko@joh.to>,
Michael Paquier <michael.paquier@gmail.com>,
PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-10-10T14:54:26Z
Lists: pgsql-bugs
I wrote: > ... I'm a bit hesitant to put a GetSnapshotData > call into ProcessIncomingNotify, because of the possibility of adding a > lot of contention on the ProcArray if there's very heavy notify traffic. Wait, I have an idea. Let's fetch a snapshot at the top of ProcessIncomingNotify, and then use the snapshot to decide whether xids are running, instead of calling TransactionIdIsInProgress. GetSnapshotData is probably a bit heavier than a single TransactionIdIsInProgress call, but if we have to process multiple messages then this should be a net savings in ProcArray traffic. regards, tom lane
Commits
-
Fix low-probability loss of NOTIFY messages due to XID wraparound.
- 525b09adae78 9.2.24 landed
- f4cdf781a1d2 10.1 landed
- 7573d122f157 9.3.20 landed
- 69bc245d9296 9.5.10 landed
- 36c687a22f49 9.6.6 landed
- 118e99c3d71e 11.0 landed
- 0e84f70752cf 9.4.15 landed