Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4dn8-0002mb-2G for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2019 03:45:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4dn5-0000YF-JE for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2019 03:45:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4dn5-0000Y8-7L for pgsql-general@lists.postgresql.org; Fri, 15 Mar 2019 03:45:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4dn2-0002S2-I0 for pgsql-general@postgresql.org; Fri, 15 Mar 2019 03:45:50 +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 x2F3jRcc011344; Thu, 14 Mar 2019 23:45:27 -0400 From: Tom Lane To: Thomas Munro cc: Julien Rouhaud , Paul Ramsey , Adrian Klaver , fuzk , pgsql-general Subject: Re: ERROR: XX000: cannot update SecondarySnapshot during a parallel operation In-reply-to: References: <58a76837.43af.16974f968f0.Coremail.fuzk80_76@163.com> <2fb2c6ad.74b1.1697ac42b3f.Coremail.fuzk80_76@163.com> Comments: In-reply-to Thomas Munro message dated "Fri, 15 Mar 2019 11:36:08 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11342.1552621527.1@sss.pgh.pa.us> Date: Thu, 14 Mar 2019 23:45:27 -0400 Message-ID: <11343.1552621527@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > A fast way to find out would be to get one of these people who can > reproduce the problem to recompile PostgreSQL with that error changed > to a PANIC, and examine the resulting smoldering core. (Someone had a > proposal to make PostgreSQL errors optionally dump the function call > stack with backtrace(3) even in regular production builds, which would > make this kind of investigations go faster, I wonder what happened to > that.) Can't speak for other people, but I remember experimenting with glibc's backtrace(3) and being so underwhelmed by the usefulness of the information presented that I thought incorporating it would be mostly a waste of effort. Maybe there's an argument that it's better than nothing at all; but I think we'd still be driven to asking people to get stack traces with better tools. regards, tom lane