Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6gAk-00046l-M4 for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Aug 2020 20:19:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6gAj-00078Y-Ge for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Aug 2020 20:19:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6gAj-00078Q-9M for pgsql-hackers@lists.postgresql.org; Fri, 14 Aug 2020 20:19:29 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6gAb-0006JG-Su for pgsql-hackers@lists.postgresql.org; Fri, 14 Aug 2020 20:19:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9zzzb7l1VI85DsQm+5FawZ89K261zVbcG/ULQdr3S0Q=; b=jCKS8VJcOvY1tvfL31MpGtcrRq va8380/Pmzo1uLezBd8sAYDFGyBdfElXQNjpeJ/twtvNkPXHqKLIIA+SdsnAH6gMMQUka7lKZvtvY KDZoOsWh2qJZUR+BujCC9m9g6a1FC5PkJeUiTgKWnFSerCU5JRhu1Lfonh6Fji3p3q0P4AePqzI+d D2dZ6qkw6rIqRMUqSTjmVKhJjqGdKQ2VDcJhByoek3A3ZT4iHr7EpJ0rncfHQMjQTx7BoOtdmlGrt d7Q5S6d4mt1RiHwdQd5l9hE/Wrv+yLnOxSN6bhAWX91MIyrUFo2b6GYStge5lu55ZMa57Ohd28KQ4 9rek2Oew==; Received: from [184.19.31.139] (port=35656) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k6gAZ-0051FQ-Bx; Fri, 14 Aug 2020 16:19:19 -0400 Subject: Re: Loose ends after CVE-2020-14350 (extension installation hazards) To: Tom Lane References: <653936.1597431032@sss.pgh.pa.us> <5F36E107.50907@anastigmatix.net> <655710.1597433892@sss.pgh.pa.us> Cc: pgsql-hackers@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F36F1C6.2080307@anastigmatix.net> Date: Fri, 14 Aug 2020 16:19:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <655710.1597433892@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/14/20 15:38, Tom Lane wrote: > (3) If the SQL syntax is really just "WITH variable value [, ...]" > then I'm afraid we're going to have a lot of parse-ambiguity problems > with wedging full SET syntax into that. The ability for the righthand There is precedent in the SET command for having one general syntax usable for any GUC, and specialized ones for a few 'special' GUCs (search_path, client_encoding, timezone). Maybe WITH could be done the same way, inventing some less thorny syntax for the general case WITH (foo = bar, baz), (quux = 42), XMLBINARY BASE64, a AS (SELECT...) and treating just the few like XMLBINARY that appear in the standard as having equivalent specialized productions? The only examples of the syntax in the standard that are coming to mind right now are those I've seen in the SQL/XML part, but I feel like I have seen others, as if the committee kind of likes their WITH local-setting- of-something syntax, and additional examples may continue to appear. Regards, -Chap