[ Backpatch to 7.3.X.]

Bruce Momjian <bruce@momjian.us>

Commit: 612cbaf5ed7e4a50b45eb7efd4bae7302918eb24
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-06-25T04:09:15Z
Releases: 7.3.4
[ Backpatch to 7.3.X.]

If they're not, the below causes problems, as the foreign key is added
after the CHECK.  Cluster depends on the index name, so I thought it
wise to ensure all names are available, rather than leaving off the
CONSTRAINT "$n" portion for internally named constraints.

CREATE TABLE jkey (col integer primary key);
CREATE TABLE j (col integer REFERENCES jkey);
ALTER TABLE j ADD CHECK(col > 5);


This is a problem in 7.3 series as well as -Tip.

--
Rod Taylor <rbt@rbt.ca>

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +2 −3