CREATE OR REPLACE AGGREGATE -- NOT! - Mailing list pgsql-general

From dandl
Subject CREATE OR REPLACE AGGREGATE -- NOT!
Date
Msg-id 009601d1a670$28ffb650$7aff22f0$@andl.org
Whole thread Raw
Responses Re: CREATE OR REPLACE AGGREGATE -- NOT!  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general

I was surprised to discover that

·         CREATE OR REPLACE AGGREGATE is not allowed, but

·         CREATE OR REPLACE FUNCTION works just fine

 

Is this an oversight, or is there some reason I missed?

 

Yes, I know I can do:

DROP AGGREGATE IF EXISTS

CREATE AGGREGATE

 

But this triggers a NOTICE. Is there any convenient way to replace a (possibly) existing aggregate function without triggering a NOTICE?

 

Regards

David M Bennett FACS


Andl - A New Database Language - andl.org

 

pgsql-general by date:

Previous
From: "dandl"
Date:
Subject: Re: Thoughts on "Love Your Database"
Next
From: rob stone
Date:
Subject: Re: Debian and Postgres