Re: Minor typo in 13.3.5. Advisory Locks

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Minor typo in 13.3.5. Advisory Locks
Дата
Msg-id 76AEBCC7-5C7C-4A30-B3C3-8FAB1883C789@yesql.se
обсуждение исходный текст
Ответ на Re: Minor typo in 13.3.5. Advisory Locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Minor typo in 13.3.5. Advisory Locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
> On 28 Mar 2023, at 22:45, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> PG Doc comments form <noreply@postgresql.org> writes:
>> Page: https://www.postgresql.org/docs/15/explicit-locking.html
>
>> After the code snippet in the 6th paragraph of 13.3.5. Advisory Locks
>> (https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS)
>> I believe there is a mistake in this sentence (I've surrounded it with
>> asterisks):
>
>> "In the above queries, the second *form* is dangerous because the
>> LIMIT...".
>
>> I believe that "form" in the above sentence is actually meant to be "from",
>> referencing the second line of code and its FROM clause in the snippet.
>
> No, I think "form" is exactly what was meant.

Agreed, I think that was the indended spelling.

> Maybe we should have said "second query" or something like that, though.

Reading this section I agree that the mix of ok/danger in the same example can
be tad misleading though.  Something like the attached is what I would prefer
as a reader.

--
Daniel Gustafsson


Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Cannot update the generation expression for a generated column / make the limitation explicit
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Minor typo in 13.3.5. Advisory Locks