Re: Raise exception without using plpgsql? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Raise exception without using plpgsql?
Date
Msg-id CAKFQuwbeczLopMAyoNFuxNAsUAnoTZ6X-QJ8Hifz3mjudqSciA@mail.gmail.com
Whole thread Raw
In response to Raise exception without using plpgsql?  ("Joel Jacobson" <joel@compiler.org>)
List pgsql-general
On Thursday, December 17, 2020, Joel Jacobson <joel@compiler.org> wrote:
Hi,

Is there a way to raise an exception with a message,
without having to add your own plpgsql helper-function?

Not that i’ve seen.  There is no SQL way to do so, and I’ve not seen a core c-language function that provides that feature.

David J.

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: SV: Problem with ssl and psql in Postgresql 13
Next
From: Gustavsson Mikael
Date:
Subject: SV: SV: Problem with ssl and psql in Postgresql 13