Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwygW-0002WA-VK for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Sep 2017 22:50:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dwygV-0002nx-DF for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Sep 2017 22:50:35 +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 1dwyfm-0000IN-Ov; Tue, 26 Sep 2017 22:49:50 +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 1dwyfk-0000V2-6q; Tue, 26 Sep 2017 22:49:49 +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 v8QMndQv019031; Tue, 26 Sep 2017 18:49:39 -0400 From: Tom Lane To: Andrew Dunstan cc: Stephen Frost , Bruce Momjian , "David E. Wheeler" , Christophe Pettus , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] BUG #14825: enum type: unsafe use? In-reply-to: <32160eb9-60df-746b-bbc0-dd232b993d6d@2ndQuadrant.com> References: <27064.1506350579@sss.pgh.pa.us> <5f4f29bf-90b1-e49a-6cf9-069c59bc1067@2ndQuadrant.com> <40FDB1F3-932D-4912-B4C7-F1E26E331079@justatheory.com> <1090.1506365074@sss.pgh.pa.us> <9666.1506446327@sss.pgh.pa.us> <329.1506451066@sss.pgh.pa.us> <38835cdd-!c378-8d7a-013b-fd733c78c649@2ndQuadrant.com> <12792.1506456422@sss.pgh.pa.us> <20170926211419.GB7167@momjian.us> <16025.1506461535@sss.pgh.pa.us> <20170926214548.GQ4628@tamriel.snowman.net> <5161729c-4597-8a41-f4e2-c7d97e84d86e@2ndQuadrant.com> <32160eb9-60df-746b-bbc0-dd232b993d6d@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Tue, 26 Sep 2017 18:18:53 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19029.1506466179.1@sss.pgh.pa.us> Date: Tue, 26 Sep 2017 18:49:39 -0400 Message-ID: <19030.1506466179@sss.pgh.pa.us> 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 Andrew Dunstan writes: > I'm not happy about the idea of marking an input function as not > parallel safe, certainly not without a good deal of thought and > discussion that we don't have time for this cycle. Yeah, that aspect of it was bothering me too: it's easy to say "mark the function unsafe", but that only helps to the extent that the function is used in queries where the planner has control of whether to parallelize or not. There's an awful lot of hard-wired calls to I/O functions in our code, and I would not want to promise that none of those are reachable in a parallel worker. As for Stephen's concern, I had already looked at reverting 15bc038f9 earlier, and concluded that none of that code had changed significantly since then. There's some conflicts due to pgindent activity but I think pulling it out will be a straightforward thing to do. 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