Fix breakage of GIN support for varchar[] and cidr[] that I introduced in the
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Sep 2007 01:18:33 +0000 (01:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Sep 2007 01:18:33 +0000 (01:18 +0000)
commit7d2c612e055ad613796cdd08c6b22802d0bb5a91
tree91df0921048ed307e25b65898e477884ae5940cc
parent225349d7025f0f4974e98ce9a2d7a0ca76333efe
Fix breakage of GIN support for varchar[] and cidr[] that I introduced in the
operator-family rewrite.  I had mistakenly supposed that these could use the
pg_amproc entries for text[] and inet[] respectively.  However, binary
compatibility of the underlying types does not make two array types binary
compatible (since they must differ in the header field that gives the element
type OID), and so the index support code doesn't consider those entries
applicable.  Add back the missing pg_amproc entries, and add an opr_sanity
query to try to catch such mistakes in future.  Per report from Gregory
Maxwell.
src/include/catalog/catversion.h
src/include/catalog/pg_amproc.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql