Re: Checking if Aggregate exists - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Checking if Aggregate exists
Date
Msg-id 20080324181755.GH5484@alvh.no-ip.org
Whole thread Raw
In response to Checking if Aggregate exists  (Josh Trutwin <josh@trutwins.homeip.net>)
List pgsql-general
Josh Trutwin wrote:

> Is there a better way to do this?  Maybe a stored proc that eats the
> error message?

Well, you can use a plpgsql function with a BEGIN/EXCEPTION/END block to
"eat" the error message.  However I'm wondering whether you should be
checking the aggregate argument type(s) as well.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Checking if Aggregate exists
Next
From: Erik Jones
Date:
Subject: Re: Checking if Aggregate exists