mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntax
'aggname (aggtype)'. The old syntax 'aggname aggtype' is still accepted for backwards compatibility. Fix pg_dump, which was actually broken for most cases of user-defined aggregates. Clean up error messages associated with these commands.
This commit is contained in:
@ -147,20 +147,20 @@ drop index nonesuch;
|
||||
-- missing aggregate name
|
||||
drop aggregate;
|
||||
|
||||
-- bad aggregate name
|
||||
drop aggregate 314159;
|
||||
|
||||
-- no such aggregate
|
||||
drop aggregate nonesuch;
|
||||
|
||||
-- missing aggregate type
|
||||
drop aggregate newcnt1;
|
||||
|
||||
-- bad aggregate name
|
||||
drop aggregate 314159 (int);
|
||||
|
||||
-- bad aggregate type
|
||||
drop aggregate newcnt nonesuch;
|
||||
drop aggregate newcnt (nonesuch);
|
||||
|
||||
-- no such aggregate
|
||||
drop aggregate nonesuch (int4);
|
||||
|
||||
-- no such aggregate for type
|
||||
drop aggregate newcnt float4;
|
||||
drop aggregate newcnt (float4);
|
||||
|
||||
|
||||
--
|
||||
|
Reference in New Issue
Block a user