Hi, I have a question that is not specified in the docs[1]. I am using deferrable constraints in a transaction with SET CONSTRAINTS ALL DEFERRED. Now I know that DEFERRED constraints are not checked until transaction COMMIT (i.e., the end), however are they checked with SAVEPOINT (i.e., part-way in)? Thanks, -Mike [1] http://www.postgresql.org/docs/8.4/static/sql-set-constraints.html
On 8 June 2010 03:02, Mike Toews <mwtoews@gmail.com> wrote: > Hi, > > I have a question that is not specified in the docs[1]. I am using > deferrable constraints in a transaction with SET CONSTRAINTS ALL > DEFERRED. Now I know that DEFERRED constraints are not checked until > transaction COMMIT (i.e., the end), however are they checked with > SAVEPOINT (i.e., part-way in)? > No, SAVEPOINTs will not force a check. A SAVEPOINT is nothing like a COMMIT (it's more like a nested BEGIN). The only things that will cause deferred constraints to be checked are a COMMIT or a SET CONSTRAINTS .. IMMEDIATE. Regards, Dean
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера