Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwUnn-0005QE-5J for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Sep 2017 14:56:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dwUnm-0005fN-Jj for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Sep 2017 14:56:06 +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 1dwUnl-0005ex-K2 for pgsql-hackers@postgresql.org; Mon, 25 Sep 2017 14:56:05 +0000 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dwUnh-0007vd-OZ for pgsql-hackers@postgresql.org; Mon, 25 Sep 2017 14:56:04 +0000 Received: by mail-yw0-x229.google.com with SMTP id o143so4889957ywd.12 for ; Mon, 25 Sep 2017 07:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YRtrbNTp9nRgkbLTfsSD5duZocrdqP6mFQNn4jalZKI=; b=i8wxdueaFnxpnw/UBDDFeWgDo+/LdFLP8sJfMmJH8mhD7XKCCk+xZs6e7XTIoEFs31 pmeiXHzMZXFpIbtB0XOzuCzw0YunBkMikYPo6UQOPQRBmZ0ljeqPY+WQunFMSGKDsJSo t5RE5FJq2W1JtQkG4gIsJXAGWHqKMxGJrS1x0oVidZS5525Pz6//t+mAZdqNTxm78ksA oX87lj9XvjlOVJKdPrekQvntrRQQQbS4uJVm8KLIPfkVJYordcE2GSu3eUF8xoCAxeMU yrW3CAEYfSKs68ch/OEeH0iQsznZ9ABEw5s45uBy8XEN/7yU3AFVXrH5nLB/6/HbUKM4 Z4+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YRtrbNTp9nRgkbLTfsSD5duZocrdqP6mFQNn4jalZKI=; b=dqdypWTbjzG1nYJwafTt3C8Rdu/Slr7sUtlZkLtoMOuEzNeSQQ029x/xNC7hozkn1Y KyIoY4mZoWwCNn6qyU12mXMkh2u9qqZhfF8rNnkb88FN41SDkzc37qRyW9eXcI+zRX/H MANFPCY/GIsCAY/B9UKliz1+EpvnJvhgQ9OXzPlwMYpTkBd9+iZUKgsGG+ucDmx/Dyh6 g+82vfPt3IrzeixdvD0qHyTInyM1bMiihnaNIttNQ3UicRmYZqEKlnzeloDoxN4r35qa W7wJboH91tMCpoAaXHb4kaMYv9sM0s5bTY7iritEbB2k0A0cAUuJ0ZkPzJH4MWGkVg2C 7tpw== X-Gm-Message-State: AHPjjUjAh1vpa6RsVNLp7e9q/EFjkKGWEniu0TSu9EXONrT0sc3nNlCe 2SwObq4FYSYINMy7UnrOZP0n X-Google-Smtp-Source: AOwi7QA8OZ7A5JEMxSPqaiUCTETbAH8w9JGhTflAQ2kul0KyuN3mwRGM26Q2Q6Sh8xMgRaa3eRZsbw== X-Received: by 10.37.27.8 with SMTP id b8mr4846176ybb.471.1506351359941; Mon, 25 Sep 2017 07:55:59 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id p188sm753927ywb.53.2017.09.25.07.55.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 07:55:59 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: [BUGS] BUG #14825: enum type: unsafe use? To: Tom Lane Cc: Christophe Pettus , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org, "David E. Wheeler" References: <20170922185904.1448.16585@wrigleys.postgresql.org> <15165.1506116768@sss.pgh.pa.us> <3cece400-af56-7145-2e65-f044de1b0b68@2ndQuadrant.com> <28968.1506136792@sss.pgh.pa.us> <24380.1506179805@sss.pgh.pa.us> <16272.1506189656@sss.pgh.pa.us> <928f5974-151f-0273-0221-fac213e7624f@2ndQuadrant.com> <19137.1506196325@sss.pgh.pa.us> <4942e2c0-3302-f496-d4c1-a967f77d0143@2ndQuadrant.com> <25662.1506204381@sss.pgh.pa.us> <9479302a-09b8-4264-f9c4-514b65f18547@2ndQuadrant.com> <18127.1506285450@sss.pgh.pa.us> <2770f70a-5977-3fa1-1065-11b4cc69f07f@2ndQuadrant.com> <23438.1506294409@sss.pgh.pa.us> <25809.1506348877@sss.pgh.pa.us> <27064.1506350579@sss.pgh.pa.us> Message-ID: <5f4f29bf-90b1-e49a-6cf9-069c59bc1067@2ndQuadrant.com> Date: Mon, 25 Sep 2017 10:55:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <27064.1506350579@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW 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 On 09/25/2017 10:42 AM, Tom Lane wrote: > Andrew Dunstan writes: >> On 09/25/2017 10:14 AM, Tom Lane wrote: >>> Oh ... I did not think we were on the same page, because your patch >>> didn't include removal of the same-transaction heuristic. It'd be >>> sensible to do that as a separate patch, though, to make it easier >>> to put back if we decide we do want it. >> I understood you to say that the blacklist patch was all we needed to do >> for v10. That's my position, i.e. I think we can live with the heuristic >> test for now if the blacklist patch is applied. Maybe we need to >> document that the heuristic test can generate some false negatives when >> testing for a type that is created in the current transaction. > No, as I said upthread, I want the heuristic out of there. I think the > blacklist idea covers enough use-cases that we possibly don't need the > same-transaction test at all. Furthermore I'm doubtful that the heuristic > form of the same-transaction test is adequate to satisfy the use-cases > that the blacklist test doesn't cover. So I think we should remove that > test and see whether we get any complaints, and if so what the details of > the real-world use-cases look like. > > Let's ask a couple of users who I think are or have been actually hurting on this point. Christophe and David, any opinions? cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers