Re: How to raise error from PostgreSql SQL statement if some condition is met

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to raise error from PostgreSql SQL statement if some condition is met
Date: 2012-08-12 05:07:01
Message-ID: 502739F5.50504@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2012-08-12 07:31:42 Re: How to raise error from PostgreSql SQL statement if some condition is met
Previous Message Craig Ringer 2012-08-12 03:26:59 Re: How to raise error from PostgreSql SQL statement if some condition is met