Re: Raise exception without using plpgsql?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Raise exception without using plpgsql?
Дата
Msg-id 20201217164503.GA18792@depesz.com
обсуждение исходный текст
Ответ на Raise exception without using plpgsql?  ("Joel Jacobson" <joel@compiler.org>)
Ответы Re: Raise exception without using plpgsql?
Список pgsql-general
On Thu, Dec 17, 2020 at 03:32:09PM +0100, Joel Jacobson wrote:
> Hi,
> Is there a way to raise an exception with a message,
> without having to add your own plpgsql helper-function?
> Currently this is what I have:

Well, you can:
DO $$ begin raise notice 'zz'; END; $$;
It's cheating though, as it still needs plpgsql.

Best regards,

depesz




В списке pgsql-general по дате отправления:

Предыдущее
От: Gustavsson Mikael
Дата:
Сообщение: SV: SV: SV: Problem with ssl and psql in Postgresql 13
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Raise exception without using plpgsql?