Re: commenting on polymorphic aggregates possible?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: commenting on polymorphic aggregates possible?
Date: 2003-11-20 04:36:30
Message-ID: 1143.1069302990@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
> COMMENT ON AGGREGATE newcnt (any) IS 'an any agg comment';
> ERROR: syntax error at or near "any" at character 30

ANY is a reserved word. To reference the pseudotype named "any",
you need quotes:
COMMENT ON AGGREGATE newcnt ("any") IS 'an any agg comment';

No doubt it would've been better to use a different name for the
pseudotype, but I think the behavior of CREATE AGGREGATE's
"basetype = 'any'" was chosen long before there was any thought of
making Postgres SQL-compliant :-(

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message William ZHANG 2003-11-20 05:09:42 Re: 7.4: CHAR padding inconsistency
Previous Message Bruce Momjian 2003-11-20 03:50:41 Re: question about fixes in v7.4...