Re: Check constraint failure messages
От | Ron |
---|---|
Тема | Re: Check constraint failure messages |
Дата | |
Msg-id | ead34fe3-3a92-6875-6081-d1e4fb665478@gmail.com обсуждение исходный текст |
Ответ на | Check constraint failure messages (Miles Elam <miles.elam@productops.com>) |
Ответы |
Re: Check constraint failure messages
|
Список | pgsql-general |
On 4/6/21 2:40 PM, Miles Elam wrote:
Is it a deferred constraint?
I've got a domain that validates email addresses. When inserting a bunch of entries I simply get the error messageERROR: value for domain po.email violates check constraint "email_check" SQL state: 23514When inserting 1000+ entries in a batch, finding the exact entry with the problem is noticeably harder than with other error types. For example when a column should be a uuid but you pass in 'Mary had a little lamb', the error message tells you what the invalid value is as well as the column name you're trying to put it into.Are there any quick hacks floating around out there to solve or at least mitigate this?
Is it a deferred constraint?
--
Angular momentum makes the world go 'round.
Angular momentum makes the world go 'round.
В списке pgsql-general по дате отправления: