How can I get a restrict_violation?

Поиск
Список
Период
Сортировка
Искать

How can I get a restrict_violation?

От:
A B <gentosaker@gmail.com>
Дата:
Hi.

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?

Re: How can I get a restrict_violation?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
A B  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
FAQ