Re: How to raise error from PostgreSql SQL statement if some condition is met - Mailing list pgsql-general

From Craig Ringer
Subject Re: How to raise error from PostgreSql SQL statement if some condition is met
Date
Msg-id 502739F5.50504@ringerc.id.au
Whole thread Raw
In response to How to raise error from PostgreSql SQL statement if some condition is met  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-general
On 08/12/2012 03:07 AM, Andrus wrote:
I’m looking for a way to raise error from sql select if some condition is met.
Tried code below to got error shown in comment.

For anyone reading this later, Andrus also posted this on Stack Overflow:

http://stackoverflow.com/questions/11916838/how-to-execute-postgresql-raise-command-dynamically

Andrus: If you post in multiple places please say so and link between them. It stops people wasting their time and helps others find the answers when searching later.

--
Craig Ringer

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: How to raise error from PostgreSql SQL statement if some condition is met
Next
From: "Andrus"
Date:
Subject: Re: How to raise error from PostgreSql SQL statement if some condition is met