Re: SV: Problem with pg_notify / listen
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gustavsson Mikael <mikael.gustavsson@smhi.se>, pgsql-bugs@lists.postgresql.org, Svensson Peter <peter.svensson@smhi.se>, Almen Anders <anders.almen@smhi.se>
Date: 2020-11-28T04:10:01Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix a recently-introduced race condition in LISTEN/NOTIFY handling.
- f6324bbbe63c 10.16 landed
- f5de090cc175 13.2 landed
- cbc7a7a10c2d 12.6 landed
- 9c83b54a9ccd 14.0 landed
- 8a4069766079 9.6.21 landed
- 60d6c71430f9 9.5.25 landed
- 40f2fbe71ad6 11.11 landed
-
Prevent concurrent SimpleLruTruncate() for any given SLRU.
- d4031d78460c 11.10 cited
On Fri, Nov 27, 2020 at 11:03:40PM -0500, Tom Lane wrote: > Noah Misch <noah@leadboat.com> writes: > > I think we don't yet have the right name here, seeing QUEUE_TAIL_PAGE != > > QUEUE_POS_PAGE(QUEUE_TAIL) sounds paradoxical, yet happens regularly. How > > about naming it QUEUE_STOP_PAGE? > > Hmm, it's not very clear what "stop" means here. What do you think of > QUEUE_OLDEST_PAGE? "STOP" would mean the same kind of thing it means in xidStopLimit, multiStopLimit and offsetStopLimit. Interpreted for pg_notify specifically, it would mean "if queueing a notification would require use of this page, throw an error." QUEUE_OLDEST_PAGE is fine. I like it a little less than QUEUE_STOP_PAGE, because oldestClogXid is a logical tail, and QUEUE_OLDEST_PAGE would be a physical tail.