Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-12-07 Thread Bruce Momjian
On Mon, Nov 20, 2023 at 08:20:57PM -0700, David G. Johnston wrote: > On Mon, Nov 20, 2023 at 8:16 PM Bruce Momjian wrote: > > On Mon, Nov 20, 2023 at 07:19:39PM -0700, David G. Johnston wrote: > > The placement in the numbered listing section feels wrong, I am OK with > > the wording.

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-20 Thread David G. Johnston
On Mon, Nov 20, 2023 at 8:16 PM Bruce Momjian wrote: > On Mon, Nov 20, 2023 at 07:19:39PM -0700, David G. Johnston wrote: > > The placement in the numbered listing section feels wrong, I am OK with > > the wording. It should be down in the clause details. > > > > FOR lock_strength [ OF from_refe

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-20 Thread Bruce Momjian
On Mon, Nov 20, 2023 at 07:19:39PM -0700, David G. Johnston wrote: > The placement in the numbered listing section feels wrong, I am OK with > the wording.  It should be down in the clause details. > > FOR lock_strength [ OF from_reference [, ...] ] [ NOWAIT | SKIP LOCKED ]  -- > need to change th

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-20 Thread David G. Johnston
On Mon, Nov 20, 2023 at 7:04 PM Bruce Momjian wrote: > On Fri, Nov 17, 2023 at 03:44:04PM -0700, David G. Johnston wrote: > > I don't like this particular solution to the stated complaint. When a > FROM > > entry has an alias it must be referenced via that alias anywhere it is > > referenced in

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-20 Thread Bruce Momjian
On Fri, Nov 17, 2023 at 03:44:04PM -0700, David G. Johnston wrote: > I don't like this particular solution to the stated complaint.  When a FROM > entry has an alias it must be referenced via that alias anywhere it is > referenced in the query - and indeed it is an error to not write the alias in >

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-17 Thread David G. Johnston
On Fri, Nov 17, 2023 at 3:13 PM Bruce Momjian wrote: > On Fri, Apr 27, 2018 at 01:47:49PM +, PG Doc comments form wrote: > > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/9.5/static/sql-select.html > > Description: > > > > In

Re: SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2023-11-17 Thread Bruce Momjian
On Fri, Apr 27, 2018 at 01:47:49PM +, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.5/static/sql-select.html > Description: > > In the SELECT statement page the argument type of the (FOR SHARE/UPDA

RE: SELECT ... FOR UPDATE OF

2020-12-18 Thread Alan Thomas
Hi David, Thanks for responding. > It is. "If specific tables are named in a locking clause, then only rows > coming from those tables are locked;" I see – thanks for pointing it out. It would be good if this sentence actually referred to "OF" by name. The section on locking clauses is long

Re: SELECT ... FOR UPDATE OF

2020-12-17 Thread David G. Johnston
On Thu, Dec 17, 2020 at 5:29 AM PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/13/sql-select.html > Description: > > The FOR UPDATE clause of the SELECT statement can be followed by an OF > clause, but th

SELECT ... FOR UPDATE OF

2020-12-17 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/13/sql-select.html Description: The FOR UPDATE clause of the SELECT statement can be followed by an OF clause, but this is never explained at all in the documentation, as far as I can tell. W

SELECT ... FOR UPDATE OF clause documentation implies use of table_names rather than aliases

2018-04-27 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/9.5/static/sql-select.html Description: In the SELECT statement page the argument type of the (FOR SHARE/UPDATE) OF clause is listed to be a table_name. This is not *quite* accurate - it shou