Fix breakage of GIN support for varchar[] and cidr[] that I introduced in the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a4df52f95ff315dd10beca27cf93ff652be62153
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-03T01:18:33Z
Releases: 8.3.0
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.

Files