Re: creating aggregates that work on composite types (whole tuples)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: creating aggregates that work on composite types (whole tuples)
Date: 2002-07-30 14:49:54
Message-ID: 2145.1028040594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing <hannu(at)tm(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2002-07-30 14:55:55 Re: Password sub-process ...
Previous Message Marc G. Fournier 2002-07-30 14:47:28 Re: Virus Emails