Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csUfi-0004c8-3t for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 13:26:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csUfh-0006x0-FC for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 13:26:57 +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 1csUeC-0004JL-29 for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 13:25:24 +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 1csUe9-0004Cy-Ou for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 13:25:22 +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 v2RDPJDw015355; Mon, 27 Mar 2017 09:25:19 -0400 From: Tom Lane To: Robert Haas cc: Rafia Sabih , PostgreSQL Developers Subject: Re: [COMMITTERS] pgsql: Improve access to parallel query from procedural languages. In-reply-to: References: <16061.1490479253@sss.pgh.pa.us> <27106.1490479449@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 27 Mar 2017 08:24:09 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15353.1490621119.1@sss.pgh.pa.us> Date: Mon, 27 Mar 2017 09:25:19 -0400 Message-ID: <15354.1490621119@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Mon, Mar 27, 2017 at 1:48 AM, Rafia Sabih > wrote: >> This is caused because trigger related functions are marked safe and >> using global variables, hence when executed in parallel are giving >> incorrect output. > If it's just that they are relying on unsynchronized global variables, > then it's sufficient to mark them parallel-restricted ('r'). Do we > really need to go all the way to parallel-unsafe ('u')? Color me confused, but under what circumstances would triggers get executed by a parallel worker at all? I thought we did not allow updating queries to be parallelized. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers