Re: CREATE OR REPLACE AGGREGATE -- NOT!

From: "dandl" <david(at)andl(dot)org>
To: "'David G(dot) Johnston'" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "'Postgres General'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: CREATE OR REPLACE AGGREGATE -- NOT!
Date: 2016-05-06 00:55:39
Message-ID: 007901d1a732$042a9d00$0c7fd700$@andl.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks. Much as I expected.

No, I don’t think it would be hard to do. Maybe if I ever feel a pressing need to learn how to submit a patch it might be something to start with.

Regards

David M Bennett FACS

_____

Andl - A New Database Language - andl.org

From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of David G. Johnston
Sent: Thursday, 5 May 2016 2:06 PM
To: dandl <david(at)andl(dot)org>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] CREATE OR REPLACE AGGREGATE -- NOT!

On Wednesday, May 4, 2016, dandl <david(at)andl(dot)org <mailto:david(at)andl(dot)org> > wrote:

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?

Its not an oversight: but whether it is easily accomplished, or worthy of the effort, is a different matter.

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?

Set client_min_messages = warning;

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric Ridge 2016-05-06 01:04:03 Re: How to manually force a transaction wraparound
Previous Message drum.lucas@gmail.com 2016-05-05 23:56:23 Re: Function PostgreSQL 9.2