aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-08-09 13:46:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-08-09 13:46:38 -0400
commit2f9912335c198f7ee8ec8c46a72f947c9c1c2257 (patch)
tree2fdeed8af5397e758d7542ace246edf9750efa96 /src/backend/utils/adt/json.c
parent213f0ff938949df3dd64cddd8c71f2da59812216 (diff)
downloadpostgresql-2f9912335c198f7ee8ec8c46a72f947c9c1c2257.tar.gz
postgresql-2f9912335c198f7ee8ec8c46a72f947c9c1c2257.zip
Reject duplicate column names in foreign key referenced-columns lists.
Such cases are disallowed by the SQL spec, and even if we wanted to allow them, the semantics seem ambiguous: how should the FK columns be matched up with the columns of a unique index? (The matching could be significant in the presence of opclasses with different notions of equality, so this issue isn't just academic.) However, our code did not previously reject such cases, but instead would either fail to match to any unique index, or generate a bizarre opclass-lookup error because of sloppy thinking in the index-matching code. David Rowley
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions