Tweak BRIN minmax operator class
In the union support proc, we were not checking the hasnulls flag of value A early enough, so it could be skipped if the "allnulls" flag in value B is set. Also, a check on the allnulls flag of value "B" was redundant, so remove it. Also change inet_minmax_ops to not be the default opclass for type inet, as a future inclusion operator class would be more useful and it's pretty difficult to change default opclass for a datatype later on. (There is no catversion bump for this catalog change; this shouldn't be a problem.) Extracted from a larger patch to add an "inclusion" operator class. Author: Emre Hasegeli
Showing
- src/backend/access/brin/brin_minmax.c 10 additions, 9 deletionssrc/backend/access/brin/brin_minmax.c
- src/include/catalog/pg_opclass.h 1 addition, 1 deletionsrc/include/catalog/pg_opclass.h
- src/test/regress/expected/brin.out 1 addition, 1 deletionsrc/test/regress/expected/brin.out
- src/test/regress/sql/brin.sql 1 addition, 1 deletionsrc/test/regress/sql/brin.sql
Please register or sign in to comment