Re: Weird return-value from pg_get_function_identity_arguments() oncertain aggregate functions?
От | David G. Johnston |
---|---|
Тема | Re: Weird return-value from pg_get_function_identity_arguments() oncertain aggregate functions? |
Дата | |
Msg-id | CAKFQuwbMKiqHK7ac6iiwY8bfza_C80b8-WXfJ3r8ii5wVX3U2A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Weird return-value from pg_get_function_identity_arguments() oncertain aggregate functions? ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: Weird return-value from pg_get_function_identity_arguments() on certain aggregate functions?
|
Список | pgsql-bugs |
According to the System Information Functions docs, pg_get_function_identity_argum
ents(OID) should simply "get argument list to identify a function (without default values)", but one example of how it behaves strangely is that:
SELECT pg_get_function_identity_argum
ents('pg_catalog.percentile_ disc(DOUBLE PRECISION[], ANYELEMENT)'::REGPROCEDURE)
FWIW a simple \dfS percentile* will elicit the same description.I suppose it depends on what you are using the output for - the (percentile*) functions that are decorated with ORDER BY are exclusively aggregate, as opposed to standard, functions.
In this case I'd say the supposed bug is that GRANT ON FUNCTION doesn't accept the signature of a valid CREATE AGGREGATE even though our existing implementation uses it as an implementation mechanism for both (i.e., we don't have a separate GRANT ON AGGREGATE).
David J.
В списке pgsql-bugs по дате отправления: