Re: creating aggregates that work on composite types (whole tuples)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: creating aggregates that work on composite types (whole tuples) |
| Дата | |
| Msg-id | 2145.1028040594@sss.pgh.pa.us обсуждение |
| Ответ на | creating aggregates that work on composite types (whole tuples) (Hannu Krosing <hannu@tm.ee>) |
| Ответы |
Re: creating aggregates that work on composite types
|
| Список | pgsql-hackers |
Hannu Krosing <hannu@tm.ee> writes:
> I am trying to create an aggregate function that works on whole tuples,
> but the system does not find them once defined ;(
> hannu=# select tabulate(users) from users;
> ERROR: No such attribute or function 'tabulate'
This seems to work in CVS tip. I think you're stuck in older releases
though. The syntax "foo(tablename)" is understood to mean "either a
column selection or a function call" ... but aggregates were quite
distinct from plain functions up until about a month ago, and they
weren't considered as an option at that spot in the code.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера