Re: Bug or strange result of Max() on arrays containing NULL values

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Bug or strange result of Max() on arrays containing NULL values
Дата
Msg-id CAKFQuwaYG7BsqZh+jZVKwPVbE_xGUYOMCG9n_SpBTM3n2jiM8A@mail.gmail.com
обсуждение исходный текст
Ответ на Bug or strange result of Max() on arrays containing NULL values  ("Plettenbacher, Tobias (LWF)" <Tobias.Plettenbacher@lwf.bayern.de>)
Список pgsql-bugs
On Sat, Aug 24, 2024 at 5:54 AM Plettenbacher, Tobias (LWF) <Tobias.Plettenbacher@lwf.bayern.de> wrote:

I often use Max(ARRAY[]) to get the ID of the maximum value.


You should probably start writing lateral queries with limits instead of hacking aggregation to determine rank.

David J.

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