First pass at integrating BIT and BIT VARYING code from Adriaan Joubert.
Tom Lane <tgl@sss.pgh.pa.us>
First pass at integrating BIT and BIT VARYING code from Adriaan Joubert. Update functions to new-style fmgr, make BIT and VARBIT be binary- equivalent, add entries to allow these types to be btree indexed, correct a few bugs. BIT/VARBIT are now toastable, too. NOTE: initdb forced due to catalog updates.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/varbit.c | modified | +607 −451 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_amop.h | modified | +21 −2 |
| src/include/catalog/pg_amproc.h | modified | +3 −2 |
| src/include/catalog/pg_opclass.h | modified | +5 −1 |
| src/include/catalog/pg_operator.h | modified | +9 −18 |
| src/include/catalog/pg_proc.h | modified | +150 −150 |
| src/include/catalog/pg_type.h | modified | +4 −4 |
| src/include/parser/parse_coerce.h | modified | +8 −3 |
| src/include/utils/varbit.h | modified | +72 −59 |
| src/test/regress/expected/opr_sanity.out | modified | +6 −4 |