1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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
This commit is contained in:
Alvaro Herrera
2015-01-22 17:01:09 -03:00
parent b04d691613
commit 972bf7d6f1
4 changed files with 13 additions and 12 deletions

View File

@ -65,7 +65,7 @@ CREATE INDEX brinidx ON brintest USING brin (
float4col,
float8col,
macaddrcol,
inetcol,
inetcol inet_minmax_ops,
bpcharcol,
datecol,
timecol,

View File

@ -68,7 +68,7 @@ CREATE INDEX brinidx ON brintest USING brin (
float4col,
float8col,
macaddrcol,
inetcol,
inetcol inet_minmax_ops,
bpcharcol,
datecol,
timecol,