Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1v3u-0008AZ-D7 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 13:59:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e1v3u-0003qE-01 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 13:59:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1v3t-0003of-CR for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 13:59:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1v3m-000412-3f for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 13:59:08 +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 v9ADwwfB015646; Tue, 10 Oct 2017 09:58:58 -0400 From: Tom Lane To: Marko Tiikkaja cc: Michael Paquier , PostgreSQL mailing lists Subject: Re: BUG #14830: Missed NOTIFications, PostgreSQL 9.1.24 In-reply-to: References: <20170926182935.14128.65278@wrigleys.postgresql.org> Comments: In-reply-to Marko Tiikkaja message dated "Tue, 10 Oct 2017 14:39:49 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15644.1507643938.1@sss.pgh.pa.us> Date: Tue, 10 Oct 2017 09:58:58 -0400 Message-ID: <15645.1507643938@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 Marko Tiikkaja writes: > So I managed to accidentally kill and/or restart both servers while trying > to install debug symbols, but I'm doing a new run now and I noticed > something interesting: the listening backend's RecentXmin doesn't seem to > ever go forward. By my reading of this code, that would mean trouble for > this piece of code in TransactionIdIsInProgress: > if (TransactionIdPrecedes(xid, RecentXmin)) > return false; 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? 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