Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btwnM-0007Vv-Dz for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2016 13:08:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btwnL-0001Bf-Nt for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2016 13:08:35 +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 1btwmh-0000T6-K5 for pgsql-bugs@postgresql.org; Tue, 11 Oct 2016 13:07:55 +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 1btwma-0001Ej-Hi for pgsql-bugs@postgresql.org; Tue, 11 Oct 2016 13:07:55 +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 u9BD7j6C022112; Tue, 11 Oct 2016 09:07:45 -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: <14354.1475905437@sss.pgh.pa.us> <1876.1476114029@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Tue, 11 Oct 2016 18:28:50 +0530" Date: Tue, 11 Oct 2016 09:07:45 -0400 Message-ID: <22111.1476191265@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) 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: > On Mon, Oct 10, 2016 at 9:10 PM, Tom Lane wrote: >> So I guess the question is why in the world are we doing that inside >> a transaction. > I think that is required for some of the parameters like > "session_authorization". If user has set this for leader backend and > we want it to be reflected in worker backend, then without starting > transaction it won't allow (refer check_session_authorization()). Well, we're going to need to fix that. Using a transaction here is basically a bad idea IMO, and the current complaint shows that it creates its own set of problems. Pointing at check_session_authorization is no argument why it should be that way. Without having consumed any caffeine, I'd wonder whether looking at the "source" parameter would help resolve matters. 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