]> granicus.if.org Git - postgresql/commitdiff
Fix brin regression test so it actually tests cidr.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2015 19:24:22 +0000 (15:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2015 19:24:22 +0000 (15:24 -0400)
The problem noted in my previous commit was simpler than I thought:
we weren't getting an index plan because the column wasn't indexed.

src/test/regress/expected/brin.out
src/test/regress/sql/brin.sql

index 272db274aaf868b1904aadbabb761567d3e26b95..0937b63667c3dfd6cb5a641162559f1db1b04450 100644 (file)
@@ -77,6 +77,8 @@ CREATE INDEX brinidx ON brintest USING brin (
        macaddrcol,
        inetcol inet_inclusion_ops,
        inetcol inet_minmax_ops,
+       cidrcol inet_inclusion_ops,
+       cidrcol inet_minmax_ops,
        bpcharcol,
        datecol,
        timecol,
@@ -373,34 +375,6 @@ BEGIN
        END LOOP;
 END;
 $x$;
-WARNING:  did not get bitmap indexscan plan for (cidrcol,&&,inet,10/8,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,=,inet,10.2.14/24,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<,inet,255.255.255.255,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<=,inet,255.255.255.255,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>,inet,0.0.0.0,125)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>=,inet,0.0.0.0,125)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>=,inet,10.2.14.231/24,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>,inet,10.2.14.231/25,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<=,inet,10.2.14.231/8,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<,inet,0/0,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,&&,inet,fe80::6e40:8ff:fea9:a673/32,25)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>=,inet,fe80::6e40:8ff:fea9:8c46,1)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<=,inet,fe80::6e40:8ff:fea9:a673/32,25)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,=,inet,fe80::6e40:8ff:fea9:8c46,1)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,&&,cidr,10/8,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,=,cidr,10.2.14/24,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<,cidr,255.255.255.255,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<=,cidr,255.255.255.255,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>,cidr,0.0.0.0,125)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>=,cidr,0.0.0.0,125)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>=,cidr,10.2.14/24,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>,cidr,10.2.14/25,2)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<=,cidr,10/8,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<,cidr,0/0,100)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,&&,cidr,fe80::/32,25)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,>>=,cidr,fe80::6e40:8ff:fea9:8c46,1)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,<<=,cidr,fe80::/32,25)
-WARNING:  did not get bitmap indexscan plan for (cidrcol,=,cidr,fe80::6e40:8ff:fea9:8c46,1)
 INSERT INTO brintest SELECT
        repeat(stringu1, 42)::bytea,
        substr(stringu1, 1, 1)::"char",
index a4b56b40447669fa3b28820b3e25361a7eed3d02..db78d05ff3f55dc5544f8fc05619af2920926563 100644 (file)
@@ -80,6 +80,8 @@ CREATE INDEX brinidx ON brintest USING brin (
        macaddrcol,
        inetcol inet_inclusion_ops,
        inetcol inet_minmax_ops,
+       cidrcol inet_inclusion_ops,
+       cidrcol inet_minmax_ops,
        bpcharcol,
        datecol,
        timecol,