Re: How can I get a restrict_violation?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: A B <gentosaker(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How can I get a restrict_violation?
Date: 2011-01-21 15:29:31
Message-ID: 10137.1295623771@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

A B <gentosaker(at)gmail(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mike Thomsen 2011-01-21 17:01:40 "Database does not exist"... but it does exist
Previous Message A B 2011-01-21 09:53:31 How can I get a restrict_violation?