]> granicus.if.org Git - postgresql/commit
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)
commita4df52f95ff315dd10beca27cf93ff652be62153
treed53044600aa8cb5a73382e67d9f76849280307b9
parent2abae34a2e8fde42be731b4e18d44cd08901464d
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