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 1hBLCZ-0000bL-82 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 15:19:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBLCX-0005Lh-3O for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 15:19:49 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLCW-0005La-SP for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 15:19:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLCU-0000FF-1O for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 15:19:48 +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 x32FJfKM029889; Tue, 2 Apr 2019 11:19:41 -0400 From: Tom Lane To: Thomas Munro cc: ANASTACIO Tiago , Peter Geoghegan , PostgreSQL mailing lists Subject: Re: BUG #15726: parallel queries failed ERROR: invalid name syntax CONTEXT: parallel worker In-reply-to: References: <15726-6d67e4fa14f027b3@postgresql.org> <1831482307.24522245.1554199154256@mail.yahoo.com> Comments: In-reply-to Thomas Munro message dated "Tue, 02 Apr 2019 23:23:11 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29887.1554218381.1@sss.pgh.pa.us> Date: Tue, 02 Apr 2019 11:19:41 -0400 Message-ID: <29888.1554218381@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Tue, Apr 2, 2019 at 10:59 PM ANASTACIO Tiago > wrote: >> A pity background worker are no more verbose (DEBUG5) than: >> 2019-04-02 09:42:38.993 GMT [17654] ERROR: invalid name syntax > I agree, it would be nice to improve that. It seems to be a general > problem with any GUC that requires a transaction to check: parallel > workers will force that, but you might not understand the error > because it comes with no context. That gives me an idea: perhaps we > should set the elog() context while restoring GUCs, so that it is > displayed in the error output somehow. Yeah, something like CONTEXT: while setting parameter guc_variable_name to "some value" would likely make this a whole lot more comprehensible. And I think it could probably be done in a fairly centralized way using an error callback. regards, tom lane