diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-06-25 04:09:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-06-25 04:09:15 +0000 |
commit | 612cbaf5ed7e4a50b45eb7efd4bae7302918eb24 (patch) | |
tree | 0b76e30723fd8bfab78020b0973355d283b2ced7 /src/backend/parser/parse_func.c | |
parent | 5fbc1d4a452bf06bc4b8701e5a3f0bc7dfcac004 (diff) | |
download | postgresql-612cbaf5ed7e4a50b45eb7efd4bae7302918eb24.tar.gz postgresql-612cbaf5ed7e4a50b45eb7efd4bae7302918eb24.zip |
[ 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>
Diffstat (limited to 'src/backend/parser/parse_func.c')
0 files changed, 0 insertions, 0 deletions