Re: How can I get a restrict_violation? - Mailing list pgsql-novice

From Tom Lane
Subject Re: How can I get a restrict_violation?
Date
Msg-id 10137.1295623771@sss.pgh.pa.us
Whole thread Raw
In response to How can I get a restrict_violation?  (A B <gentosaker@gmail.com>)
List pgsql-novice
A B <gentosaker@gmail.com> writes:
> While looking through the error codes in Appendix 1 in the doc, I
> found restrict_violation.

> What is that and how do I get it?

RESTRICT_VIOLATION is one of the SQLSTATE codes specified in the SQL
standard, but so far as a quick grep finds, it's not actually thrown
anywhere in Postgres at the moment.  So the answer is "you can't".

            regards, tom lane

pgsql-novice by date:

Previous
From: A B
Date:
Subject: How can I get a restrict_violation?
Next
From: Mike Thomsen
Date:
Subject: "Database does not exist"... but it does exist