Re: Checking if Aggregate exists

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Checking if Aggregate exists
Дата
Msg-id 20080324181755.GH5484@alvh.no-ip.org
обсуждение исходный текст
Ответ на Checking if Aggregate exists  (Josh Trutwin <josh@trutwins.homeip.net>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Checking if Aggregate exists
Следующее
От: Erik Jones
Дата:
Сообщение: Re: Checking if Aggregate exists