postgresql/src
Tom Lane 2c535bfe81 Fix incorrect optimization of foreign-key checks. When an UPDATE on the
referencing table does not change the tuple's FK column(s), we don't bother
to check the PK table since the constraint was presumably already valid.
However, the check is still necessary if the tuple was inserted by our own
transaction, since in that case the INSERT trigger will conclude it need not
make the check (since its version of the tuple has been deleted).  We got this
right for simple cases, but not when the insert and update are in different
subtransactions of the current top-level transaction; in such cases the FK
check would never be made at all.  (Hence, problem dates back to 8.0 when
subtransactions were added --- it's actually the subtransaction version of a
bug fixed in 7.3.5.)  Fix, and add regression test cases.  Report and fix by
Affan Salman.
2007-07-17 17:45:28 +00:00
..
backend Fix incorrect optimization of foreign-key checks. When an UPDATE on the 2007-07-17 17:45:28 +00:00
bin Fixup the indentation of a comment that was mangled by pgindent, and 2007-07-12 23:25:26 +00:00
include Implement CREATE TABLE LIKE ... INCLUDING INDEXES. Patch from NikhilS, 2007-07-17 05:02:03 +00:00
interfaces Enable GSSAPI to build using MSVC. Always build GSSAPI when Kerberos is 2007-07-12 14:43:21 +00:00
makefiles Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00:00
pl Allow plpgsql function parameter names to be qualified with the function's 2007-07-16 17:01:11 +00:00
port Get dirmod.c on the same page as port.h about whether we use pgsymlink 2007-07-12 23:28:49 +00:00
template With the native compiler on Unixware, disable optimization if 2007-07-16 17:38:48 +00:00
test Fix incorrect optimization of foreign-key checks. When an UPDATE on the 2007-07-17 17:45:28 +00:00
timezone Make some messages more consistent 2007-05-31 15:13:06 +00:00
tools Enable GSSAPI to build using MSVC. Always build GSSAPI when Kerberos is 2007-07-12 14:43:21 +00:00
tutorial Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00:00
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00:00
Makefile.shlib
nls-global.mk
win32.mak