| От | Tom Lane |
|---|---|
| Тема | Re: BUG #18563: Where is tha "FIRST" aggregate function?? |
| Дата | |
| Msg-id | 3781617.1722540209@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #18563: Where is tha "FIRST" aggregate function?? (Christophe Pettus <xof@thebuild.com>) |
| Список | pgsql-bugs |
Christophe Pettus <xof@thebuild.com> writes: >> On Aug 1, 2024, at 09:25, PG Bug reporting form <noreply@postgresql.org> wrote: >> I am migrating for >> other database, bacause of the dificulty to get a similar resource to >> substitute the "FIRST" in PostgreSQL and I hope you can recognize this bad >> error and implement something to suppply this lack. Good bye! > It's trivial to implement in PostgreSQL: > https://wiki.postgresql.org/wiki/First/last_(aggregate) The built-in (since v16) "any_value()" aggregate is actually just like what that page shows for "first()". The name is chosen to reflect the fact that the aggregate itself isn't promising anything: you have to use it in the correct way to get useful behavior. regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера