Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1vNz-0000rE-86 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 14:19:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e1vNy-000418-Pn for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 14:19:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1vNx-0003v5-RL for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 14:19:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1vNv-00061b-7a for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 14:19:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9AEJm06016672; Tue, 10 Oct 2017 10:19:48 -0400 From: Tom Lane To: Alvaro Herrera cc: Marko Tiikkaja , Michael Paquier , PostgreSQL mailing lists Subject: Re: BUG #14830: Missed NOTIFications, PostgreSQL 9.1.24 In-reply-to: <20171010140621.u4avva4cxylwpyew@alvherre.pgsql> References: <20171010140621.u4avva4cxylwpyew@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 10 Oct 2017 16:06:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16670.1507645188.1@sss.pgh.pa.us> Date: Tue, 10 Oct 2017 10:19:48 -0400 Message-ID: <16671.1507645188@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > Tom Lane wrote: >> Hmm ... I suppose it's possible that that happens if the listening >> backend isn't executing any SQL commands but is just sitting. >> While that might describe your test harness, does it describe any >> real-world application? > I think it's not totally unreasonable to have processes sitting idle for > long periods of time. Sure, but if they're truly idle, they aren't looking at RecentXmin ;-) > Would they not recompute RecentXmin if they did a > sinval reset? Not sure, but if not, maybe making that code path update it would be a suitable fix in practice? 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. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs