Search Postgresql Archives

The difference between RESTRICT and NO ACTION

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In discussing foreign key constraints the manual makes the following statement about the difference between RESTRICT and NO ACTION.

"(The essential difference between these two choices is that |NO ACTION| allows the check to be deferred until later in the transaction, whereas |RESTRICT| does not.)"

Can someone explain what this means in practical terms? Do both options generate the same error message? Does "until later in the transaction" mean that NO ACTION is not checked until an attempt is made to commit the transaction?

If someone can point me to a more detailed explanation I would appreciate it. Thanks.

Bill

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux