Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4yQ5-0006om-Gi for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 23:06:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4yQ4-0000YV-Ul for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 23:06:08 +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 1c4yOh-0007Oe-Aj for pgsql-hackers@postgreSQL.org; Thu, 10 Nov 2016 23:04:43 +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 1c4yOa-0004xf-IB for pgsql-hackers@postgreSQL.org; Thu, 10 Nov 2016 23:04:42 +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 uAAN4YQq023419 for ; Thu, 10 Nov 2016 18:04:34 -0500 From: Tom Lane To: pgsql-hackers@postgreSQL.org Subject: Re: Something is broken about connection startup In-reply-to: <16447.1478818294@sss.pgh.pa.us> References: <16447.1478818294@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 10 Nov 2016 17:51:34 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23417.1478819074.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Nov 2016 18:04:34 -0500 Message-ID: <23418.1478819074@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > A quick look through the sources confirms that this error implies that > SearchSysCache on the RELOID cache must have failed to find a tuple for > pg_proc --- there are many occurrences of this text, but they all are > reporting that. Which absolutely should not be happening now that we use > MVCC catalog scans, concurrent updates or no. So I think this is a bug, > and possibly a fairly-recently-introduced one, because I can't remember > seeing buildfarm failures like this one before. After tweaking elog.c to promote FATAL to PANIC, I got stack traces confirming that the error occurs here: #0 0x0000003779a325e5 in raise (sig=3D6) at ../nptl/sysdeps/unix/sysv/linu= x/raise.c:64 #1 0x0000003779a33dc5 in abort () at abort.c:92 #2 0x000000000080d177 in errfinish (dummy=3D) at elog= .c:560 #3 0x000000000080df94 in elog_finish (elevel=3D,=20 fmt=3D) at elog.c:1381 #4 0x0000000000801859 in RelationCacheInitializePhase3 () at relcache.c:34= 44 #5 0x000000000081a145 in InitPostgres (in_dbname=3D, = dboid=3D0,=20 username=3D, useroid=3D, out_= dbname=3D0x0) at postinit.c:982 #6 0x0000000000710c81 in PostgresMain (argc=3D1, argv=3D,=20 dbname=3D0x24d4c40 "regression", username=3D0x24abc88 "postgres") at po= stgres.c:3728 #7 0x00000000006a6eae in BackendRun (argc=3D,=20 argv=3D) at postmaster.c:4271 #8 BackendStartup (argc=3D, argv=3D) at postmaster.c:3945 #9 ServerLoop (argc=3D, argv=3D) at postmaster.c:1701 #10 PostmasterMain (argc=3D, argv=3D) at postmaster.c:1309 #11 0x00000000006273d8 in main (argc=3D3, argv=3D0x24a9b20) at main.c:228 So it's happening when RelationCacheInitializePhase3 is trying to replace a fake pg_class row for pg_proc (made by formrdesc) with the real one. That's even odder, because that's late enough that this should be a pretty ordinary catalog lookup. Now I wonder if it's possible that this can be seen during ordinary relation opens after connection startup. If so, it would almost surely be a recently-introduced bug, else we'd have heard about this from the field. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers