Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxHT1-000426-Jt for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Sep 2017 18:53:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxHT1-0007gm-28 for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Sep 2017 18:53:55 +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 1dxHSI-0005GA-1v; Wed, 27 Sep 2017 18:53:10 +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 1dxHSB-0001bB-Bi; Wed, 27 Sep 2017 18:53:08 +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 v8RIqsJd010136; Wed, 27 Sep 2017 14:52:54 -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: <10134.1506538374.1@sss.pgh.pa.us> Date: Wed, 27 Sep 2017 14:52:54 -0400 Message-ID: <10135.1506538374@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: > At this stage on reflection I agree it should be pulled :-( That seems to be the consensus, so I'll go make it happen. > 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. I think the way forward is to do what we had as of HEAD (984c92074), but add the ability to transmit the blacklist table to parallel workers. Since we expect the blacklist table would be empty most of the time, this should be close to no overhead in practice. I concur that the idea of marking the relevant functions parallel-restricted is probably not as safe a fix as I originally thought, and it's not a very desirable restriction even if it did fix the problem. 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