pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
8+ messages / 2 participants
[nested] [flat]

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b8c651b75b2133d843b4fbbd52254b55792339cd

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a91e8e13261d05a3a64bfa3e439790d6e788f5dd

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3ee692d82f8001c95f3154080886dd764e21d5b0

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33cd0e5ea65d1fad0a579fa7ef0bab337246c231

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1fd0eee66f1e74d6a547d860a9f5d51a2277bb02

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-03-31 20:31  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-03-31 20:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM

Previously the syntax and wording were unclear.

Reported-by: Alexey Bashtanov

Discussion: https://postgr.es/m/968d4724-8e58-788f-7c45-f7b1813824cc@imap.cc

Backpatch-through: 9.5

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f40f44f1e7e70ca235c9b079e9849ee352449be8

Modified Files
--------------
doc/src/sgml/ref/delete.sgml | 20 ++++++++++----------
doc/src/sgml/ref/update.sgml | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-04-02 05:32  Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  parent: Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 8+ messages in thread

From: Peter Eisentraut @ 2020-04-02 05:32 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; pgsql-committers@lists.postgresql.org

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
  <synopsis>
  [ WITH [ RECURSIVE ] <replaceable 
class="parameter">with_query</replaceable> [, ...] ]
  DELETE FROM [ ONLY ] <replaceable 
class="PARAMETER">table_name</replaceable> [ * ] [ [ AS ] <replaceable 
class="parameter">alias</replaceable> ]
-    [ USING <replaceable class="PARAMETER">using_list</replaceable> ]
+    [ USING <replaceable class="parameter">from_item</replaceable> [, 
...] ]
      [ WHERE <replaceable class="PARAMETER">condition</replaceable> | 
WHERE CURRENT OF <replaceable class="PARAMETER">cursor_name</replaceable> ]
      [ RETURNING * | <replaceable 
class="parameter">output_expression</replaceable> [ [ AS ] <replaceable 
class="parameter">output_name</replaceable> ] [, ...] ]
  </synopsis>

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





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM
@ 2020-04-02 21:32  Bruce Momjian <bruce@momjian.us>
  parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2020-04-02 21:32 UTC (permalink / raw)
  To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; +Cc: pgsql-committers@lists.postgresql.org

On Thu, Apr  2, 2020 at 07:32:49AM +0200, Peter Eisentraut wrote:
> 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
>  <synopsis>
>  [ WITH [ RECURSIVE ] <replaceable
> class="parameter">with_query</replaceable> [, ...] ]
>  DELETE FROM [ ONLY ] <replaceable
> class="PARAMETER">table_name</replaceable> [ * ] [ [ AS ] <replaceable
> class="parameter">alias</replaceable> ]
> -    [ USING <replaceable class="PARAMETER">using_list</replaceable> ]
> +    [ USING <replaceable class="parameter">from_item</replaceable> [, ...]
> ]
>      [ WHERE <replaceable class="PARAMETER">condition</replaceable> | WHERE
> CURRENT OF <replaceable class="PARAMETER">cursor_name</replaceable> ]
>      [ RETURNING * | <replaceable
> class="parameter">output_expression</replaceable> [ [ AS ] <replaceable
> class="parameter">output_name</replaceable> ] [, ...] ]
>  </synopsis>
> 
> 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.

This message from Tom requested the use of "from_list":

	https://www.postgresql.org/message-id/7354.1584500334%40sss.pgh.pa.us

	I think that the DELETE synopsis should look like
	
	
	    [ USING <replaceable class="parameter">from_item</replaceable> [, ...] ]
	
	
	so that there's not any question which part of the SELECT syntax we're
	talking about. 

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +





^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2020-04-02 21:32 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>
2020-04-02 05:32 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2020-04-02 21:32   ` Bruce Momjian <bruce@momjian.us>
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>
2020-03-31 20:31 pgsql: doc: adjust UPDATE/DELETE's FROM/USING to match SELECT's FROM Bruce Momjian <bruce@momjian.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox