pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Rafia Sabih <rafia.sabih@enterprisedb.com>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Improve access to parallel query from procedural languages.
Date: Mon, 27 Mar 2017 09:25:19 -0400
Message-ID: <15354.1490621119@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZpM-6pDfj_ONHPpARmr7ZhgvGBCQYo9T2kpvP2Gtfx7w@mail.gmail.com>
References: <E1crUHL-0004xN-Eo@gemulon.postgresql.org>
	<16061.1490479253@sss.pgh.pa.us>
	<27106.1490479449@sss.pgh.pa.us>
	<CAOGQiiOPQJ-KQokWLRSBQ=oYh-6w0TuWGZEgDwOzDagdhJXBCA@mail.gmail.com>
	<CA+TgmoZpM-6pDfj_ONHPpARmr7ZhgvGBCQYo9T2kpvP2Gtfx7w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Mar 27, 2017 at 1:48 AM, Rafia Sabih
> <rafia.sabih@enterprisedb.com> 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



view thread (11+ messages)  latest in thread

Message-ID: <15354.1490621119@sss.pgh.pa.us>
Permalink:  ../15354.1490621119@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15354.1490621119@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, rafia.sabih@enterprisedb.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Improve access to parallel query from procedural languages.
  In-Reply-To: <15354.1490621119@sss.pgh.pa.us>
  References: <E1crUHL-0004xN-Eo@gemulon.postgresql.org> <16061.1490479253@sss.pgh.pa.us> <27106.1490479449@sss.pgh.pa.us> <CAOGQiiOPQJ-KQokWLRSBQ=oYh-6w0TuWGZEgDwOzDagdhJXBCA@mail.gmail.com> <CA+TgmoZpM-6pDfj_ONHPpARmr7ZhgvGBCQYo9T2kpvP2Gtfx7w@mail.gmail.com> <15354.1490621119@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox