From: | Gustavsson Mikael <mikael(dot)gustavsson(at)smhi(dot)se> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Noah Misch <noah(at)leadboat(dot)com> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Svensson Peter <peter(dot)svensson(at)smhi(dot)se>, Almen Anders <anders(dot)almen(at)smhi(dot)se>, Karlsson Peter <Peter(dot)Karlsson(at)smhi(dot)se> |
Subject: | SV: SV: Problem with pg_notify / listen |
Date: | 2020-11-30 06:59:37 |
Message-ID: | 0680bb40822c4dd48b4e9025f8bb25b4@smhi.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general |
Great!
I will talk to the rest of the team on which path to take.
And thank you for finding and fixing this so quickly!
kr
Mikael Gustavsson
SMHI
________________________________
Från: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Skickat: den 28 november 2020 20:15
Till: Noah Misch
Kopia: Gustavsson Mikael; pgsql-bugs(at)lists(dot)postgresql(dot)org; Svensson Peter; Almen Anders
Ämne: Re: SV: Problem with pg_notify / listen
Noah Misch <noah(at)leadboat(dot)com> writes:
> On Fri, Nov 27, 2020 at 11:03:40PM -0500, Tom Lane wrote:
>> Hmm, it's not very clear what "stop" means here. What do you think of
>> QUEUE_OLDEST_PAGE?
> 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.
I went with QUEUE_STOP_PAGE.
In further testing, I noted that the patch as I had it re-introduced the
symptom that 8b7ae5a82 fixed, that running "make installcheck" twice
in a row causes the async-notify isolation test to fail. That's because
I'd changed asyncQueueUsage() to measure the distance back to the physical
tail, which isn't stable because we only truncate after crossing an
SLRU segment boundary. So I reverted it to measuring the distance to
QUEUE_TAIL. You could argue either way about which definition is more
useful to end users, perhaps; but in practice the difference should
usually be too small to matter, for everyone except regression tests
that are looking for distance exactly zero.
Anyhow, pushed with that fix.
Mikael, it appears that you have three options: revert to 11.9 until 11.11
is out, restart your server every time it approaches notify-queue-full, or
apply this patch:
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2020-11-30 09:02:26 | Re: A documents mistaken of PG12.5 |
Previous Message | Thomas Munro | 2020-11-30 05:59:40 | Re: BUG #16663: DROP INDEX did not free up disk space: idle connection hold file marked as deleted |
From | Date | Subject | |
---|---|---|---|
Next Message | Dirk Mika | 2020-11-30 10:11:38 | Re: Set COLLATE on a session level |
Previous Message | Pavel Stehule | 2020-11-30 06:08:34 | Re: Migration from SQL Server to PostgeSQL |