]> granicus.if.org Git - postgresql/commit
Generate a WARNING when the column types in a foreign key constraint are
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Mar 2004 22:09:14 +0000 (22:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Mar 2004 22:09:14 +0000 (22:09 +0000)
commitb88fa3b196644526c96cc08189f62773808151ab
treef86ab6ba6e006c4c437fb2cddfe43acb8d046c2d
parent642cd0ab13f01c84b789c75024778fe2e6c5d10a
Generate a WARNING when the column types in a foreign key constraint are
incompatible enough to prevent indexscanning the referenced table.  Also,
improve the error message that pops out when we can't implement the FK at
all for lack of a usable equality operator.  Fabien Coelho, with some review
by Tom Lane.
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql