Re: Checking if Aggregate exists

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Checking if Aggregate exists
Date: 2008-03-24 18:17:55
Message-ID: 20080324181755.GH5484@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2008-03-24 19:02:02 Re: Checking if Aggregate exists
Previous Message Martijn van Oosterhout 2008-03-24 18:09:50 Re: Checking if Aggregate exists