Re: [BUGS] BUG #14596: False primary/unique key constraint violations
От | Tom Lane |
---|---|
Тема | Re: [BUGS] BUG #14596: False primary/unique key constraint violations |
Дата | |
Msg-id | 963.1490197297@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [BUGS] BUG #14596: False primary/unique key constraint violations ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: [BUGS] BUG #14596: False primary/unique key constraint violations
|
Список | pgsql-bugs |
"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Wed, Mar 22, 2017 at 7:45 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> ... Be aware that this can be >> significantly slower than immediate uniqueness checking. > Given that the default SET CONSTRAINT behavior is IMMEDIATE, and that > triggers are defined DEFERRABLE, what harm would there be to default to the > standard mandated behavior noted above? The performance hit is one very large problem. Another is that we don't support using deferrable indexes for purposes such as foreign keys, which means that create table x (f1 int primary key); create table y (f1 int references x); would fail if "primary key" defaulted to meaning "deferrable". So the standards noncompliance would just move somewhere else. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления: