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 1jJsTK-00077T-Ec for pgsql-committers@arkaria.postgresql.org; Thu, 02 Apr 2020 05:32:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJsTI-0008BB-67 for pgsql-committers@arkaria.postgresql.org; Thu, 02 Apr 2020 05:32:56 +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 1jJsTI-0008B4-0D for pgsql-committers@lists.postgresql.org; Thu, 02 Apr 2020 05:32:56 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJsTE-00076r-QA for pgsql-committers@lists.postgresql.org; Thu, 02 Apr 2020 05:32:55 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 648035C01D6; Thu, 2 Apr 2020 01:32:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 Apr 2020 01:32:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=3k/YF59/XNSAqpsUnHOMUwe2G1zuvphPkohEzAi5C BE=; b=axoSSAvbll0sTXCPmQroioM3xC9jd1uHNYLjMoQHtGWYcg1FfvgvVBJrC 2rzBWiTPUSkcGMFNnrpUTpGFO6Vb/w+jxWSWl1Q4bflWjIwD4T8ZJ502kA4+a/8B 0bFkTyUnWGczJk5iS/wtT0EudnIXhFkCSz4figBHXXw79RT95+0tItI9svYscD7X akrQd1hFDGK+RJXJhU4a5qbv98aANc/iE0YoHTs3OuO0jJ6kAEtR4zijZp1+WXCZ EGvReXuI9DV5+j4ZhBeq/GAkwwggqfpm1NYkGRp9O/05K4yroEG6mWXCc/WzrDsb 0MQwmpx8KbYi9pDFyzF+aMVVeccbw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdefgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdrtgho mhenucfkphepleefrddvgedvrddvudefrddvgedunecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedv nhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 75FDF328005A; Thu, 2 Apr 2020 01:32:50 -0400 (EDT) Subject: Re: pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM To: Bruce Momjian , pgsql-committers@lists.postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <370f1993-7c3b-88a0-4836-6fe86d550684@2ndquadrant.com> Date: Thu, 2 Apr 2020 07:32:49 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-31 22:31, Bruce Momjian wrote: > doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM > > Previously the syntax and wording were unclear. @@ -23,7 +23,7 @@ PostgreSQL documentation [ WITH [ RECURSIVE ] with_query [, ...] ] DELETE FROM [ ONLY ] table_name [ * ] [ [ AS ] alias ] - [ USING using_list ] + [ USING from_item [, ...] ] [ WHERE condition | WHERE CURRENT OF cursor_name ] [ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ] This change doesn't make sense. It is clearly a "using list" in the case of DELETE. Trying to unify it with UPDATE is wrong because the syntax is in fact different. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services