Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLB6M-0008Ej-Mi for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 19:38:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLB6L-0006fW-9e for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 19:38:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLB6L-0006fP-2x for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2020 19:38:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLB6I-0006YN-Gy for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2020 19:38:36 +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 035JcTC9002085; Sun, 5 Apr 2020 15:38:29 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Robert Haas Subject: Re: CLOBBER_CACHE_ALWAYS regression instability In-reply-to: <20200405185749.5pi3k6w2jd2x3kgu@alap3.anarazel.de> References: <30675.1586111599@sss.pgh.pa.us> <20200405185749.5pi3k6w2jd2x3kgu@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 05 Apr 2020 11:57:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2083.1586115509.1@sss.pgh.pa.us> Date: Sun, 05 Apr 2020 15:38:29 -0400 Message-ID: <2084.1586115509@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2020-04-05 14:33:19 -0400, Tom Lane wrote: >> 1. Change the test to do "\set VERBOSITY sqlstate" so that all that >> is printed is >> ERROR: 54001 >> ERRCODE_STATEMENT_TOO_COMPLEX is used in few enough places that >> this wouldn't be too much of a loss of specificity. (Or we could >> give stack overflow its very own ERRCODE.) > We could print the error using :LAST_ERROR_MESSAGE after removing a > potential trailing "at character ..." if we're worried about the loss of > specificity. Oh, actually it seems that :LAST_ERROR_MESSAGE is already just the primary message, without any "at character N" addon, so this would be a very easy way to ameliorate that complaint. ("at character N" is added by libpq's pqBuildErrorMessage3 in TERSE mode, but psql does not use that when filling LAST_ERROR_MESSAGE.) regards, tom lane