Re: commenting on polymorphic aggregates possible?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: commenting on polymorphic aggregates possible?
Дата
Msg-id 1143.1069302990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на commenting on polymorphic aggregates possible?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.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


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: question about fixes in v7.4...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-advocacy] Not 7.5, but 8.0 ?