Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bskR9-0007PS-00 for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Oct 2016 05:44:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bskR8-0002d7-7M for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Oct 2016 05:44:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bskQU-0001vI-Aq for pgsql-bugs@postgresql.org; Sat, 08 Oct 2016 05:44:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bskQR-0007Xj-Le for pgsql-bugs@postgresql.org; Sat, 08 Oct 2016 05:44:00 +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 u985hvbl014355; Sat, 8 Oct 2016 01:43:57 -0400 From: Tom Lane To: Amit Kapila cc: David Rowley , Nikolay Samokhvalov , PostgreSQL mailing lists Subject: Re: Sudden FTS-related error from parallel worker in 9.6 In-reply-to: References: Comments: In-reply-to Amit Kapila message dated "Sat, 08 Oct 2016 11:00:05 +0530" Date: Sat, 08 Oct 2016 01:43:57 -0400 Message-ID: <14354.1475905437@sss.pgh.pa.us> X-Pg-Spam-Score: -4.6 (----) 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 Amit Kapila writes: > ... So, I think here one > argument is that we can use error level other than ERROR during worker > startup, but not sure if that is improvement over current behaviour. > Certainly, if we are not able to restore any guc, it is better not to > proceed for execution in worker as I think that can lead to erroneous > results. The real problem here, I think, is that this report indicates that it's possible for a worker to try to execute a query with GUC settings different from its parent. Which means it could deliver results different than the parent would get. That's unacceptable. In Nikolay's report, we get an error because postgresql.conf contains an invalid value, but what if it had contained a valid value that was different from the parent session's? That's entirely legit, in case the file has been edited but the DBA hasn't yet issued SIGHUP. The mechanism needs to be fixed so that the worker absorbs EXACTLY the settings that prevail in the parent, no matter what is currently in postgresql.conf. 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