Re: getting all constraint violations

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: getting all constraint violations
Дата
Msg-id AANLkTin9bOvfwC2_IpufMk6z7mewOlll_4yomcYQpHaC@mail.gmail.com
обсуждение исходный текст
Ответ на getting all constraint violations  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On Fri, May 21, 2010 at 1:27 PM, Gauthier, Dave <dave.gauthier@intel.com> wrote:
> Hi:
>
>
>
> I have a table with many constraints.  A user tries to insert a record that
> violates many of them.  The error message I get back lists the first
> violation. How cani I (or can I) get them all?

the database stops processing after the first error.  the only way to
generate a list is to check it on the client first, or do something
like make a 'before' trigger to pre-scan.

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: getting all constraint violations
Следующее
От: Tom Lane
Дата:
Сообщение: Re: getting all constraint violations