Re: slightly unexpected result

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: slightly unexpected result
Дата
Msg-id ZZ7Dcc3fN71moe3E@momjian.us
обсуждение исходный текст
Ответ на Re: slightly unexpected result  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On Wed, Jan 10, 2024 at 09:06:31AM -0700, David G. Johnston wrote:
> It is mostly documented.
> 
> https://www.postgresql.org/docs/current/queries-with.html#
> QUERIES-WITH-MODIFYING
> """
> Only one of the modifications takes place, but it is not easy (and sometimes
> not possible) to reliably predict which one.
> ...
> In particular avoid writing WITH sub-statements that could affect the same rows
> changed by the main statement or a sibling sub-statement. The effects of such a
> statement will not be predictable.
> """
> 
> Yes, an error would be nice, but the effort put forth stops at unpredictable,
> and saying just don't do it.

Oh, good to know.  :-)

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

  Only you can decide what is important to you.



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: slightly unexpected result
Следующее
От: David Barron
Дата:
Сообщение: pgAdmin 8.1 install