blob: 99646363b17094a57d27d844c9c3ed440bdefd33 [file] [log] [blame]
-- start_matchsubs
-- m/^LOG.*PartitionSelector/
-- s/^LOG.*PartitionSelector/PartitionSelector/
-- m/^LOG.*Feature not supported/
-- s/^LOG.*Feature not supported/Feature not supported/
-- end_matchsubs
-- start_matchignore
-- m/^LOG: Missing statistics for column: .*/
-- end_matchignore
-- Test ANALYZE for different data types
-- Case 1: Partitions have MCVs but after merge, none of the partition MCVs
-- qualify as a global MCV for the root and they are used to create the
-- root histogram
DROP TABLE IF EXISTS foo;
NOTICE: table "foo" does not exist, skipping
SET default_statistics_target = 4;
CREATE TYPE inc_analyze_composite AS
(
a numeric,
b numeric
);
CREATE TABLE foo (
a int,
b int,
c03_bigint bigint,
c04_bigserial bigserial,
c05_bit bit,
c06_bit_varying_10 bit varying(10),
c07_bool bool,
c08_char char,
c09_varchar_10 varchar(10),
c10_cidr cidr,
c11_date date,
c12_numeric_8_2 numeric(8,2),
c13_float8 float8,
c14_inet inet,
c15_int4 int4,
c16_interval interval,
c17_macaddr macaddr,
c18_money money,
c19_float4 float4,
c20_serial4 serial4,
c21_smallint smallint,
c22_text text,
c23_time time,
c24_timetz timetz,
c25_timestamp timestamp,
c26_timestamptz timestamptz,
c27_uuid uuid,
c28_tsquery tsquery,
c29_varchararray character varying(2)[],
c30_intarray int[],
c31_bigintarray bigint[],
c33_bitarray bit(1)[],
c34_bitvaryingarray bit varying(10)[],
c35_boolarray boolean[],
c36_chararray character(1)[],
c37_cidrarray cidr[],
c38_datearray date[],
c39_numericarray numeric[],
c40_float8array double precision[],
c41_inetarray inet[],
c42_int4array integer[],
c43_intervalarray interval[],
c44_macaddrarray macaddr[],
c45_moneyarray money[],
c46_float4array real[],
c47_smallintarrayn smallint[],
c48_textarray text[],
c49_timearray time without time zone[],
c50_timetzarray time with time zone[],
c51_timestamparray timestamp without time zone[],
c52_timestamptzarray timestamp with time zone[],
c53_uuidzarray uuid[],
c54_tsqueryarray tsquery[],
c55_jsonarray json[],
c57_pointarray point[],
c58_linesegarray lseg[],
c59_patharray path[],
c60_boxarray box[],
c61_polygonarray polygon[],
c62_circlearray circle[],
c63_inc_analyze_composite_array inc_analyze_composite[]
) PARTITION BY RANGE (b) (START (0) END(6) EVERY(3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
CREATE TYPE input_fields AS
(
varchararray character varying(2)[],
intarray int[],
_bigintarray bigint[],
bitarray bit(1)[],
bitvaryingarray bit varying(10)[],
boolarray boolean[],
chararray character(1)[],
cidrarray cidr[],
datearray date[],
numericarray numeric[],
float8array double precision[],
inetarray inet[],
int4array integer[],
intervalarray interval[],
macaddrarray macaddr[],
moneyarray money[],
float4array real[],
smallintarrayn smallint[],
textarray text[],
timearray time without time zone[],
timetzarray time with time zone[],
timestamparray timestamp without time zone[],
timestamptzarray timestamp with time zone[],
uuidzarray uuid[],
tsqueryarray tsquery[],
jsonarray json[],
pointarray point[],
linesegarray lseg[],
patharray path[],
boxarray box[],
polygonarray polygon[],
circlearray circle[],
inc_analyze_composite_array inc_analyze_composite[]
);
CREATE OR REPLACE FUNCTION get_input_fields(i INT) RETURNS input_fields AS $$
DECLARE
fields input_fields;
BEGIN
SELECT
ARRAY['a' || (i % 6), 'b' || (i % 6)]::character varying(2)[],
ARRAY[i, i % 6]::int[],
ARRAY[(i % 6), ((i + 1) % 6)]::bigint[],
ARRAY[i, (i + 1)]::bit[],
ARRAY[(i % 6)::bit(10), ((i + 1) % 6)::bit(10)]::bit varying(10)[],
ARRAY[(i % 2), ((i + 1) % 2)]::bool[],
ARRAY['a' || i, 'b' || i]::char[],
ARRAY['192.168.100.' || (i % 6), '192.168.101.' || (i % 6)]::cidr[],
ARRAY['2018-01-' || ((i % 6) + 1), '2018-01-' || ((i % 6) + 1)]::date[],
ARRAY[(i % 6), ((i + 1) % 6)]::numeric[],
ARRAY[(i % 6), ((i + 1) % 6)]::float8[],
ARRAY['192.168.100.' || (i % 6), '192.168.100.' || ((i + 1) % 6)]::inet[],
ARRAY[(i % 6), ((i + 1) % 6)]::int4[],
'{"1 hour", "1 hour"}'::interval[],
ARRAY['08:00:2b:01:02:' || (i % 6), '08:00:2b:01:02:' || (i % 6)]::macaddr[],
ARRAY['123.4', '234.5']::money[],
ARRAY[(i % 6), ((i + 1) % 6)]::float4[],
ARRAY[(i % 6), ((i + 1) % 6)]::smallint[],
ARRAY['abcd' || (i % 6), 'def' || ((i + 1) % 6)]::text[],
ARRAY[(i % 6) || ':00:00', ((i + 1) % 6) || ':00:00']::time[],
ARRAY[(i % 6) || ':00:59 PST', ((i + 1) % 6) || ':00:59 EST']::timetz[],
ARRAY['2018-01-01 ' || (i % 6) || ':59:00', '2018-01-01 ' || ((i + 1) % 6) || ':59:00']::timestamp[],
ARRAY['2018-01-01 ' || (i % 6) || ':59:00 PST', '2018-01-01 ' || ((i + 1) % 6) || ':59:00 EST']::timestamptz[],
ARRAY['11111111-1111-1111-1111-1111111111' || (i % 6) || (i % 6), '11111111-1111-1111-1111-1111111111' || ((i + 1) % 6) || ((i + 1) % 6)]::uuid[],
ARRAY['foo' || (i % 6) || ' & rat', 'rat' || (i % 6) || ' & foo']::tsquery[],
ARRAY['{"a": "b"}', '{"c": "d"}']::json[],
ARRAY[point(i, i + 1), point(i + 2, i + 3)],
ARRAY[lseg(point(i, i + 1), point(i + 2, i + 3)), lseg(point(i + 4, i + 5), point(i + 6, i + 7))],
ARRAY[path(polygon(box(point(i + 1, i + 2), point(i + 3, i + 4)))), path(polygon(box(point(i + 1, i + 2), point(i + 3, i + 4))))],
ARRAY[box(point(i + 1, i + 2), point(i + 3, i + 4)), box(point(i + 1, i + 2), point(i + 3, i + 4))],
ARRAY[polygon(box(point(i + 1, i + 2), point(i + 3, i + 4))), polygon(box(point(i + 1, i + 2), point(i + 3, i + 4)))],
ARRAY[circle(point(i + 1, i + 2), i + 3), circle(point(i + 4, i + 5), i + 6)],
ARRAY[ROW(i % 6, (i + 1) % 6), ROW(i % 6, (i + 1) % 6)]::inc_analyze_composite[]
INTO fields;
RETURN fields;
END;
$$ LANGUAGE PLPGSQL;
INSERT INTO foo
SELECT
i,
i%6,
i%6::bigint,
i%6,
i::bit,
(i%6)::bit(10)::bit varying(10),
(i%2)::bool,
(i%6)::char,
('a'||(i%6))::varchar(10),
('192.168.100.'||(i%6))::cidr,
('2018-4-'||(i%6)+1)::date,
(i%6)::numeric(8,2),
(i%6)::float8,
inet ('192.168.100.'||(i%6)),
i%6::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%6)::text)::text::macaddr,
(i%6)::text::money,
(i%6)::float4,
i%6,
i%6,
'aa'||(i%6)::text,
((i%6)::text||':59:59')::time,
((i%6)::text||':59:00 EST')::timetz,
('2018-01-01 '||(i%6)::text||':59:00')::timestamp,
('2018-01-01 '||(i%6)::text||':59:00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%6)::text||(i%6)::text)::uuid,
('foo'||(i%6)::text||' & rat'||(i%6)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,100) i;
ANALYZE foo;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' and attname != 'a' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------------------------------+-----------+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------
foo | b | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | b | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | b | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c03_bigint | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c03_bigint | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c03_bigint | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c04_bigserial | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c04_bigserial | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c04_bigserial | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_1 | c05_bit | 0 | 2 | {0,1} | {0.66,0.34} |
foo_1_prt_2 | c05_bit | 0 | 2 | {1,0} | {0.66,0.34} |
foo | c06_bit_varying_10 | 0 | 6 | {0000000001,0000000010,0000000011,0000000100} | {0.17,0.17,0.17,0.17} | {0000000000,0000000101}
foo_1_prt_1 | c06_bit_varying_10 | 0 | 3 | {0000000001,0000000010,0000000000} | {0.34,0.34,0.32} |
foo_1_prt_2 | c06_bit_varying_10 | 0 | 3 | {0000000011,0000000100,0000000101} | {0.34,0.34,0.32} |
foo | c07_bool | 0 | 2 | {f,t} | {0.5,0.5} |
foo_1_prt_1 | c07_bool | 0 | 2 | {f,t} | {0.66,0.34} |
foo_1_prt_2 | c07_bool | 0 | 2 | {t,f} | {0.66,0.34} |
foo | c08_char | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c08_char | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c08_char | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c09_varchar_10 | 0 | 6 | {a1,a2,a3,a4} | {0.17,0.17,0.17,0.17} | {a0,a5}
foo_1_prt_1 | c09_varchar_10 | 0 | 3 | {a1,a2,a0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c09_varchar_10 | 0 | 3 | {a3,a4,a5} | {0.34,0.34,0.32} |
foo | c10_cidr | 0 | 6 | {192.168.100.1/32,192.168.100.2/32,192.168.100.3/32,192.168.100.4/32} | {0.17,0.17,0.17,0.17} | {192.168.100.0/32,192.168.100.5/32}
foo_1_prt_1 | c10_cidr | 0 | 3 | {192.168.100.1/32,192.168.100.2/32,192.168.100.0/32} | {0.34,0.34,0.32} |
foo_1_prt_2 | c10_cidr | 0 | 3 | {192.168.100.3/32,192.168.100.4/32,192.168.100.5/32} | {0.34,0.34,0.32} |
foo | c11_date | 0 | 6 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.17,0.17,0.17,0.17} | {04-01-2018,04-06-2018}
foo_1_prt_1 | c11_date | 0 | 3 | {04-02-2018,04-03-2018,04-01-2018} | {0.34,0.34,0.32} |
foo_1_prt_2 | c11_date | 0 | 3 | {04-04-2018,04-05-2018,04-06-2018} | {0.34,0.34,0.32} |
foo | c12_numeric_8_2 | 0 | 6 | {1.00,2.00,3.00,4.00} | {0.17,0.17,0.17,0.17} | {0.00,5.00}
foo_1_prt_1 | c12_numeric_8_2 | 0 | 3 | {1.00,2.00,0.00} | {0.34,0.34,0.32} |
foo_1_prt_2 | c12_numeric_8_2 | 0 | 3 | {3.00,4.00,5.00} | {0.34,0.34,0.32} |
foo | c13_float8 | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c13_float8 | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c13_float8 | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c14_inet | 0 | 6 | {192.168.100.1,192.168.100.2,192.168.100.3,192.168.100.4} | {0.17,0.17,0.17,0.17} | {192.168.100.0,192.168.100.5}
foo_1_prt_1 | c14_inet | 0 | 3 | {192.168.100.1,192.168.100.2,192.168.100.0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c14_inet | 0 | 3 | {192.168.100.3,192.168.100.4,192.168.100.5} | {0.34,0.34,0.32} |
foo | c15_int4 | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c15_int4 | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c15_int4 | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_1 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_2 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo | c17_macaddr | 0 | 6 | {12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03,12:34:56:78:90:04} | {0.17,0.17,0.17,0.17} | {12:34:56:78:90:00,12:34:56:78:90:05}
foo_1_prt_1 | c17_macaddr | 0 | 3 | {12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:00} | {0.34,0.34,0.32} |
foo_1_prt_2 | c17_macaddr | 0 | 3 | {12:34:56:78:90:03,12:34:56:78:90:04,12:34:56:78:90:05} | {0.34,0.34,0.32} |
foo | c18_money | 0 | 6 | {$1.00,$2.00,$3.00,$4.00} | {0.17,0.17,0.17,0.17} | {$0.00,$5.00}
foo_1_prt_1 | c18_money | 0 | 3 | {$1.00,$2.00,$0.00} | {0.34,0.34,0.32} |
foo_1_prt_2 | c18_money | 0 | 3 | {$3.00,$4.00,$5.00} | {0.34,0.34,0.32} |
foo | c19_float4 | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c19_float4 | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c19_float4 | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c20_serial4 | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c20_serial4 | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c20_serial4 | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c21_smallint | 0 | 6 | {1,2,3,4} | {0.17,0.17,0.17,0.17} | {0,5}
foo_1_prt_1 | c21_smallint | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c21_smallint | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c22_text | 0 | 6 | {aa1,aa2,aa3,aa4} | {0.17,0.17,0.17,0.17} | {aa0,aa5}
foo_1_prt_1 | c22_text | 0 | 3 | {aa1,aa2,aa0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c22_text | 0 | 3 | {aa3,aa4,aa5} | {0.34,0.34,0.32} |
foo | c23_time | 0 | 6 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.17,0.17,0.17,0.17} | {00:59:59,05:59:59}
foo_1_prt_1 | c23_time | 0 | 3 | {01:59:59,02:59:59,00:59:59} | {0.34,0.34,0.32} |
foo_1_prt_2 | c23_time | 0 | 3 | {03:59:59,04:59:59,05:59:59} | {0.34,0.34,0.32} |
foo | c24_timetz | 0 | 6 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.17,0.17,0.17,0.17} | {00:59:00-05,05:59:00-05}
foo_1_prt_1 | c24_timetz | 0 | 3 | {01:59:00-05,02:59:00-05,00:59:00-05} | {0.34,0.34,0.32} |
foo_1_prt_2 | c24_timetz | 0 | 3 | {03:59:00-05,04:59:00-05,05:59:00-05} | {0.34,0.34,0.32} |
foo | c25_timestamp | 0 | 6 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.17,0.17,0.17,0.17} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 05:59:00 2018"}
foo_1_prt_1 | c25_timestamp | 0 | 3 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 00:59:00 2018"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c25_timestamp | 0 | 3 | {"Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018","Mon Jan 01 05:59:00 2018"} | {0.34,0.34,0.32} |
foo | c26_timestamptz | 0 | 6 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.17,0.17,0.17,0.17} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 02:59:00 2018 PST"}
foo_1_prt_1 | c26_timestamptz | 0 | 3 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Sun Dec 31 21:59:00 2017 PST"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c26_timestamptz | 0 | 3 | {"Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST","Mon Jan 01 02:59:00 2018 PST"} | {0.34,0.34,0.32} |
foo | c27_uuid | 0 | 6 | {11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144} | {0.17,0.17,0.17,0.17} | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111155}
foo_1_prt_1 | c27_uuid | 0 | 3 | {11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111100} | {0.34,0.34,0.32} |
foo_1_prt_2 | c27_uuid | 0 | 3 | {11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155} | {0.34,0.34,0.32} |
foo | c28_tsquery | 0 | 6 | {"'foo4' & 'rat4'","'foo1' & 'rat1'","'foo3' & 'rat3'","'foo2' & 'rat2'"} | {0.17,0.17,0.17,0.17} | {"'foo0' & 'rat0'","'foo5' & 'rat5'"}
foo_1_prt_1 | c28_tsquery | 0 | 3 | {"'foo1' & 'rat1'","'foo2' & 'rat2'","'foo0' & 'rat0'"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c28_tsquery | 0 | 3 | {"'foo4' & 'rat4'","'foo3' & 'rat3'","'foo5' & 'rat5'"} | {0.34,0.34,0.32} |
foo | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_1 | c29_varchararray | 0 | 3 | {"{a1,b1}","{a2,b2}","{a0,b0}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c29_varchararray | 0 | 3 | {"{a3,b3}","{a4,b4}","{a5,b5}"} | {0.34,0.34,0.32} |
foo | c30_intarray | 0 | -1 | | | {"{1,1}","{27,3}","{51,3}","{75,3}","{100,4}"}
foo_1_prt_1 | c30_intarray | 0 | -1 | | | {"{1,1}","{25,1}","{49,1}","{73,1}","{98,2}"}
foo_1_prt_2 | c30_intarray | 0 | -1 | | | {"{3,3}","{27,3}","{51,3}","{75,3}","{100,4}"}
foo | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c31_bigintarray | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c31_bigintarray | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_1 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.66,0.34} |
foo_1_prt_2 | c33_bitarray | 0 | 2 | {"{1,0}","{0,1}"} | {0.66,0.34} |
foo | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_1 | c34_bitvaryingarray | 0 | 3 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000000,0000000001}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c34_bitvaryingarray | 0 | 3 | {"{0000000011,0000000100}","{0000000100,0000000101}","{0000000101,0000000000}"} | {0.34,0.34,0.32} |
foo | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_1 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.66,0.34} |
foo_1_prt_2 | c35_boolarray | 0 | 2 | {"{t,f}","{f,t}"} | {0.66,0.34} |
foo | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_1 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_2 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_1 | c37_cidrarray | 0 | 3 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.0/32,192.168.101.0/32}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c37_cidrarray | 0 | 3 | {"{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"} | {0.34,0.34,0.32} |
foo | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_1 | c38_datearray | 0 | 3 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-01-2018,01-01-2018}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c38_datearray | 0 | 3 | {"{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"} | {0.34,0.34,0.32} |
foo | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c39_numericarray | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c39_numericarray | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c40_float8array | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c40_float8array | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_1 | c41_inetarray | 0 | 3 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.0,192.168.100.1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c41_inetarray | 0 | 3 | {"{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"} | {0.34,0.34,0.32} |
foo | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c42_int4array | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c42_int4array | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_1 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_2 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_1 | c44_macaddrarray | 0 | 3 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:00,08:00:2b:01:02:00}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c44_macaddrarray | 0 | 3 | {"{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"} | {0.34,0.34,0.32} |
foo | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_1 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_2 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c46_float4array | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c46_float4array | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c47_smallintarrayn | 0 | 3 | {"{1,2}","{2,3}","{0,1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c47_smallintarrayn | 0 | 3 | {"{3,4}","{4,5}","{5,0}"} | {0.34,0.34,0.32} |
foo | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_1 | c48_textarray | 0 | 3 | {"{abcd1,def2}","{abcd2,def3}","{abcd0,def1}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c48_textarray | 0 | 3 | {"{abcd3,def4}","{abcd4,def5}","{abcd5,def0}"} | {0.34,0.34,0.32} |
foo | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_1 | c49_timearray | 0 | 3 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{00:00:00,01:00:00}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c49_timearray | 0 | 3 | {"{03:00:00,04:00:00}","{04:00:00,05:00:00}","{05:00:00,00:00:00}"} | {0.34,0.34,0.32} |
foo | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_1 | c50_timetzarray | 0 | 3 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{00:00:59-08,01:00:59-05}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c50_timetzarray | 0 | 3 | {"{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"} | {0.34,0.34,0.32} |
foo | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_1 | c51_timestamparray | 0 | 3 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c51_timestamparray | 0 | 3 | {"{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"} | {0.34,0.34,0.32} |
foo | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_1 | c52_timestamptzarray | 0 | 3 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c52_timestamptzarray | 0 | 3 | {"{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"} | {0.34,0.34,0.32} |
foo | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_1 | c53_uuidzarray | 0 | 3 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c53_uuidzarray | 0 | 3 | {"{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"} | {0.34,0.34,0.32} |
foo | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_1 | c54_tsqueryarray | 0 | 3 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c54_tsqueryarray | 0 | 3 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"} | {0.34,0.34,0.32} |
foo | c55_jsonarray | 0 | 0 | | |
foo_1_prt_1 | c55_jsonarray | 0 | 0 | | |
foo_1_prt_2 | c55_jsonarray | 0 | 0 | | |
foo | c57_pointarray | 0 | 0 | | |
foo_1_prt_1 | c57_pointarray | 0 | 0 | | |
foo_1_prt_2 | c57_pointarray | 0 | 0 | | |
foo | c58_linesegarray | 0 | 0 | | |
foo_1_prt_1 | c58_linesegarray | 0 | 0 | | |
foo_1_prt_2 | c58_linesegarray | 0 | 0 | | |
foo | c59_patharray | 0 | 0 | | |
foo_1_prt_1 | c59_patharray | 0 | 0 | | |
foo_1_prt_2 | c59_patharray | 0 | 0 | | |
foo | c60_boxarray | 0 | 0 | | |
foo_1_prt_1 | c60_boxarray | 0 | 0 | | |
foo_1_prt_2 | c60_boxarray | 0 | 0 | | |
foo | c61_polygonarray | 0 | 0 | | |
foo_1_prt_1 | c61_polygonarray | 0 | 0 | | |
foo_1_prt_2 | c61_polygonarray | 0 | 0 | | |
foo | c62_circlearray | 0 | 0 | | |
foo_1_prt_1 | c62_circlearray | 0 | 0 | | |
foo_1_prt_2 | c62_circlearray | 0 | 0 | | |
foo | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_1 | c63_inc_analyze_composite_array | 0 | 3 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(0,1)\",\"(0,1)\"}"} | {0.34,0.34,0.32} |
foo_1_prt_2 | c63_inc_analyze_composite_array | 0 | 3 | {"{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"} | {0.34,0.34,0.32} |
(180 rows)
-- Case 2: Partitions have no MCVs, only histograms, after merge root has to
-- have approximately merged histograms.
TRUNCATE foo;
INSERT INTO foo
SELECT
i,
i%3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i%128))::cidr,
('2018-4-'||(i%15)+1)::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i%128)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%50)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
((i%12)::text||':59:59')::time,
((i%12)::text||':59:00 EST')::timetz,
('2018-01-01 '||(i%12)::text||':59:00')::timestamp,
('2018-01-01 '||(i%12)::text||':59:00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%5)::text||(i%5)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,100) i;
INSERT INTO foo
SELECT
i,
i%3,
i+200::bigint,
i+200,
i::bit,
(i+200)::bit(10)::bit varying(10),
(i+200)::bool,
(i+200)::char,
('a'||(i+200))::varchar(10),
('192.168.100.'||(i%128+128))::cidr,
('2018-4-'||(i%15+16))::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i%128+128)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%50+50)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
((i%12+12)::text||':59:59')::time,
((i%12+12)::text||':59:00 EST')::timetz,
('2018-01-01 '||(i%12+12)::text||':59:00')::timestamp,
('2018-01-01 '||(i%12+12)::text||':59:00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%5+5)::text||(i%5+5)::text)::uuid,
('foo'||(i+200)::text||' & rat'||(i+200)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,100) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i%128))::cidr,
('2018-4-'||(i%15)+1)::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i%128)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%50)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
((i%12)::text||':59:59')::time,
((i%12)::text||':59:00 EST')::timetz,
('2018-01-01 '||(i%12)::text||':59:00')::timestamp,
('2018-01-01 '||(i%12)::text||':59:00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%5)::text||(i%5)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,200) i;
ANALYZE foo;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------------------------------+-----------+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
foo | a | 0 | -0.5 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | a | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | a | 0 | -1 | | | {1,50,100,150,200}
foo | b | 0 | 6 | {1,4,5,0} | {0.17,0.1675,0.1675,0.165} | {2,3}
foo_1_prt_1 | b | 0 | 3 | {1,0,2} | {0.34,0.33,0.33} |
foo_1_prt_2 | b | 0 | 3 | {4,5,3} | {0.335,0.335,0.33} |
foo | c03_bigint | 0 | -0.7425 | | | {1,50,100,200,300}
foo_1_prt_1 | c03_bigint | 0 | -1 | | | {1,50,100,250,300}
foo_1_prt_2 | c03_bigint | 0 | -1 | | | {1,50,100,150,200}
foo | c04_bigserial | 0 | -0.7425 | | | {1,50,100,200,300}
foo_1_prt_1 | c04_bigserial | 0 | -1 | | | {1,50,100,250,300}
foo_1_prt_2 | c04_bigserial | 0 | -1 | | | {1,50,100,150,200}
foo | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_1 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_2 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo | c06_bit_varying_10 | 0 | -0.7425 | | | {0000000001,0000110010,0001100100,0011001000,0100101100}
foo_1_prt_1 | c06_bit_varying_10 | 0 | -1 | | | {0000000001,0000110010,0001100100,0011111010,0100101100}
foo_1_prt_2 | c06_bit_varying_10 | 0 | -1 | | | {0000000001,0000110010,0001100100,0010010110,0011001000}
foo | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_1 | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_2 | c07_bool | 0 | 1 | {t} | {1} |
foo | c08_char | 0 | 9 | {1,2} | {0.3075,0.305} | {3,4,7,8,9}
foo_1_prt_1 | c08_char | 0 | 9 | {2,1,3,4} | {0.55,0.06,0.06,0.055} | {5,6,7,8,9}
foo_1_prt_2 | c08_char | 0 | 9 | {1,2,3,4} | {0.555,0.06,0.055,0.055} | {5,6,7,8,9}
foo | c09_varchar_10 | 0 | -0.7375 | | | {a1,a189,a279,a53,a99}
foo_1_prt_1 | c09_varchar_10 | 0 | -1 | | | {a1,a233,a279,a53,a99}
foo_1_prt_2 | c09_varchar_10 | 0 | -1 | | | {a1,a143,a189,a53,a99}
foo | c10_cidr | 0 | -0.5725 | {192.168.100.1/32,192.168.100.2/32,192.168.100.3/32,192.168.100.4/32} | {0.005,0.005,0.005,0.005} | {192.168.100.0/32,192.168.100.50/32,192.168.100.100/32,192.168.100.178/32,192.168.100.228/32}
foo_1_prt_1 | c10_cidr | 0 | -1 | | | {192.168.100.1/32,192.168.100.50/32,192.168.100.100/32,192.168.100.178/32,192.168.100.228/32}
foo_1_prt_2 | c10_cidr | 0 | -0.64 | {192.168.100.1/32,192.168.100.2/32,192.168.100.3/32,192.168.100.4/32} | {0.01,0.01,0.01,0.01} | {192.168.100.0/32,192.168.100.28/32,192.168.100.52/32,192.168.100.79/32,192.168.100.127/32}
foo | c11_date | 0 | 30 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.0525,0.0525,0.0525,0.0525} | {04-01-2018,04-11-2018,04-15-2018,04-24-2018,04-30-2018}
foo_1_prt_1 | c11_date | 0 | -0.15 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.035,0.035,0.035,0.035} | {04-01-2018,04-11-2018,04-18-2018,04-24-2018,04-30-2018}
foo_1_prt_2 | c11_date | 0 | 15 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.07,0.07,0.07,0.07} | {04-01-2018,04-07-2018,04-10-2018,04-13-2018,04-15-2018}
foo | c12_numeric_8_2 | 0 | -0.5 | {1.00,2.00,3.00,4.00} | {0.005,0.005,0.005,0.005} | {1.00,50.00,100.00,150.00,200.00}
foo_1_prt_1 | c12_numeric_8_2 | 0 | -0.5 | {1.00,2.00,3.00,4.00} | {0.01,0.01,0.01,0.01} | {5.00,28.00,52.00,76.00,100.00}
foo_1_prt_2 | c12_numeric_8_2 | 0 | -1 | | | {1.00,50.00,100.00,150.00,200.00}
foo | c13_float8 | 0 | -0.495 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | c13_float8 | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | c13_float8 | 0 | -1 | | | {1,50,100,150,200}
foo | c14_inet | 0 | -0.5725 | {192.168.100.1,192.168.100.2,192.168.100.3,192.168.100.4} | {0.005,0.005,0.005,0.005} | {192.168.100.0,192.168.100.50,192.168.100.100,192.168.100.178,192.168.100.228}
foo_1_prt_1 | c14_inet | 0 | -1 | | | {192.168.100.1,192.168.100.50,192.168.100.100,192.168.100.178,192.168.100.228}
foo_1_prt_2 | c14_inet | 0 | -0.64 | {192.168.100.1,192.168.100.2,192.168.100.3,192.168.100.4} | {0.01,0.01,0.01,0.01} | {192.168.100.0,192.168.100.28,192.168.100.52,192.168.100.79,192.168.100.127}
foo | c15_int4 | 0 | -0.5 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | c15_int4 | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | c15_int4 | 0 | -1 | | | {1,50,100,150,200}
foo | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_1 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_2 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo | c17_macaddr | 0 | -0.25 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.015,0.015,0.015,0.015} | {12:34:56:78:90:04,12:34:56:78:90:27,12:34:56:78:90:49,12:34:56:78:90:75,12:34:56:78:90:99}
foo_1_prt_1 | c17_macaddr | 0 | -0.5 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.01,0.01,0.01,0.01} | {12:34:56:78:90:04,12:34:56:78:90:27,12:34:56:78:90:51,12:34:56:78:90:75,12:34:56:78:90:99}
foo_1_prt_2 | c17_macaddr | 0 | -0.25 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.02,0.02,0.02,0.02} | {12:34:56:78:90:04,12:34:56:78:90:15,12:34:56:78:90:26,12:34:56:78:90:38,12:34:56:78:90:49}
foo | c18_money | 0 | -0.5 | {$1.00,$2.00,$3.00,$4.00} | {0.005,0.005,0.005,0.005} | {$1.00,$50.00,$100.00,$150.00,$200.00}
foo_1_prt_1 | c18_money | 0 | -0.5 | {$1.00,$2.00,$3.00,$4.00} | {0.01,0.01,0.01,0.01} | {$5.00,$28.00,$52.00,$76.00,$100.00}
foo_1_prt_2 | c18_money | 0 | -1 | | | {$1.00,$50.00,$100.00,$150.00,$200.00}
foo | c19_float4 | 0 | -0.4925 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | c19_float4 | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | c19_float4 | 0 | -1 | | | {1,50,100,150,200}
foo | c20_serial4 | 0 | -0.5 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | c20_serial4 | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | c20_serial4 | 0 | -1 | | | {1,50,100,150,200}
foo | c21_smallint | 0 | -0.49 | {1,2,3,4} | {0.005,0.005,0.005,0.005} | {1,50,100,150,200}
foo_1_prt_1 | c21_smallint | 0 | -0.5 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {5,28,52,76,100}
foo_1_prt_2 | c21_smallint | 0 | -1 | | | {1,50,100,150,200}
foo | c22_text | 0 | -0.5 | {aa1,aa10,aa100,aa11} | {0.005,0.005,0.005,0.005} | {aa1,aa189,aa53,aa77,aa99}
foo_1_prt_1 | c22_text | 0 | -0.5 | {aa1,aa10,aa100,aa11} | {0.01,0.01,0.01,0.01} | {aa12,aa33,aa55,aa77,aa99}
foo_1_prt_2 | c22_text | 0 | -1 | | | {aa1,aa143,aa189,aa53,aa99}
foo | c23_time | 0 | 24 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.065,0.065,0.065,0.065} | {00:59:59,09:59:59,11:59:59,18:59:59,23:59:59}
foo_1_prt_1 | c23_time | 0 | -0.12 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.045,0.045,0.045,0.045} | {00:59:59,09:59:59,14:59:59,18:59:59,23:59:59}
foo_1_prt_2 | c23_time | 0 | 12 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.085,0.085,0.085,0.085} | {00:59:59,05:59:59,07:59:59,09:59:59,11:59:59}
foo | c24_timetz | 0 | 24 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.065,0.065,0.065,0.065} | {00:59:00-05,09:59:00-05,11:59:00-05,18:59:00-05,23:59:00-05}
foo_1_prt_1 | c24_timetz | 0 | -0.12 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.045,0.045,0.045,0.045} | {00:59:00-05,09:59:00-05,14:59:00-05,18:59:00-05,23:59:00-05}
foo_1_prt_2 | c24_timetz | 0 | 12 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.085,0.085,0.085,0.085} | {00:59:00-05,05:59:00-05,07:59:00-05,09:59:00-05,11:59:00-05}
foo | c25_timestamp | 0 | 24 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.065,0.065,0.065,0.065} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 09:59:00 2018","Mon Jan 01 11:59:00 2018","Mon Jan 01 18:59:00 2018","Mon Jan 01 23:59:00 2018"}
foo_1_prt_1 | c25_timestamp | 0 | -0.12 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.045,0.045,0.045,0.045} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 09:59:00 2018","Mon Jan 01 14:59:00 2018","Mon Jan 01 18:59:00 2018","Mon Jan 01 23:59:00 2018"}
foo_1_prt_2 | c25_timestamp | 0 | 12 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.085,0.085,0.085,0.085} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 05:59:00 2018","Mon Jan 01 07:59:00 2018","Mon Jan 01 09:59:00 2018","Mon Jan 01 11:59:00 2018"}
foo | c26_timestamptz | 0 | 24 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.065,0.065,0.065,0.065} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 06:59:00 2018 PST","Mon Jan 01 08:59:00 2018 PST","Mon Jan 01 15:59:00 2018 PST","Mon Jan 01 20:59:00 2018 PST"}
foo_1_prt_1 | c26_timestamptz | 0 | -0.12 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.045,0.045,0.045,0.045} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 06:59:00 2018 PST","Mon Jan 01 11:59:00 2018 PST","Mon Jan 01 15:59:00 2018 PST","Mon Jan 01 20:59:00 2018 PST"}
foo_1_prt_2 | c26_timestamptz | 0 | 12 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.085,0.085,0.085,0.085} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 02:59:00 2018 PST","Mon Jan 01 04:59:00 2018 PST","Mon Jan 01 06:59:00 2018 PST","Mon Jan 01 08:59:00 2018 PST"}
foo | c27_uuid | 0 | 10 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.15,0.15,0.15,0.15} | {11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199}
foo_1_prt_1 | c27_uuid | 0 | 10 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.1,0.1,0.1,0.1} | {11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199}
foo_1_prt_2 | c27_uuid | 0 | 5 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.2,0.2,0.2,0.2} |
foo | c28_tsquery | 0 | -0.75 | {"'foo8' & 'rat8'","'foo4' & 'rat4'","'foo9' & 'rat9'","'foo1' & 'rat1'"} | {0.005,0.005,0.005,0.005} | {"'foo5' & 'rat5'","'foo26' & 'rat26'","'foo130' & 'rat130'","'foo243' & 'rat243'","'foo109' & 'rat109'"}
foo_1_prt_1 | c28_tsquery | 0 | -1 | | | {"'foo8' & 'rat8'","'foo57' & 'rat57'","'foo273' & 'rat273'","'foo272' & 'rat272'","'foo296' & 'rat296'"}
foo_1_prt_2 | c28_tsquery | 0 | -1 | | | {"'foo8' & 'rat8'","'foo57' & 'rat57'","'foo141' & 'rat141'","'foo171' & 'rat171'","'foo109' & 'rat109'"}
foo | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}"} | {0.17,0.17,0.1675} | {"{a0,b0}","{a4,b4}","{a5,b5}"}
foo_1_prt_1 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_2 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a0,b0}","{a3,b3}"} | {0.17,0.17,0.165,0.165} | {"{a4,b4}","{a5,b5}"}
foo | c30_intarray | 0 | -0.495 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.005,0.005,0.005,0.005} | {"{1,1}","{50,2}","{100,4}","{150,0}","{200,2}"}
foo_1_prt_1 | c30_intarray | 0 | -0.5 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.01,0.01,0.01,0.01} | {"{5,5}","{28,4}","{52,4}","{76,4}","{100,4}"}
foo_1_prt_2 | c30_intarray | 0 | -1 | | | {"{1,1}","{50,2}","{100,4}","{150,0}","{200,2}"}
foo | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_1 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_2 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}"} | {0.17,0.17,0.1675} | {"{0000000000,0000000001}","{0000000100,0000000101}","{0000000101,0000000000}"}
foo_1_prt_1 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_2 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000000,0000000001}","{0000000011,0000000100}"} | {0.17,0.17,0.165,0.165} | {"{0000000100,0000000101}","{0000000101,0000000000}"}
foo | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_1 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_2 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_1 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_2 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.17,0.17,0.1675} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_1 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_2 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.0/32,192.168.101.0/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.17,0.17,0.165,0.165} | {"{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}"} | {0.17,0.17,0.1675} | {"{01-01-2018,01-01-2018}","{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_1 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_2 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-01-2018,01-01-2018}","{01-04-2018,01-04-2018}"} | {0.17,0.17,0.165,0.165} | {"{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"}
foo | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}"} | {0.17,0.17,0.1675} | {"{192.168.100.0,192.168.100.1}","{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_1 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_2 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.0,192.168.100.1}","{192.168.100.3,192.168.100.4}"} | {0.17,0.17,0.165,0.165} | {"{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"}
foo | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_1 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_2 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.17,0.17,0.1675} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_1 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_2 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.17,0.17,0.165,0.165} | {"{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_1 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_2 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17,0.17,0.1675} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.17,0.17,0.165,0.165} | {"{4,5}","{5,0}"}
foo | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}"} | {0.17,0.17,0.1675} | {"{abcd0,def1}","{abcd4,def5}","{abcd5,def0}"}
foo_1_prt_1 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_2 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd0,def1}","{abcd3,def4}"} | {0.17,0.17,0.165,0.165} | {"{abcd4,def5}","{abcd5,def0}"}
foo | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}"} | {0.17,0.17,0.1675} | {"{00:00:00,01:00:00}","{04:00:00,05:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_1 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_2 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{00:00:00,01:00:00}","{03:00:00,04:00:00}"} | {0.17,0.17,0.165,0.165} | {"{04:00:00,05:00:00}","{05:00:00,00:00:00}"}
foo | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.17,0.17,0.1675} | {"{00:00:59-08,01:00:59-05}","{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_1 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_2 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{00:00:59-08,01:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.17,0.17,0.165,0.165} | {"{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.17,0.17,0.1675} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_1 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_2 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.17,0.17,0.165,0.165} | {"{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.17,0.17,0.1675} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_1 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_2 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.17,0.17,0.165,0.165} | {"{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.17,0.17,0.1675} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_1 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_2 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.17,0.17,0.165,0.165} | {"{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo | c54_tsqueryarray | 0 | 6 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"} | {0.17,0.17,0.1675,0.1675} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_1 | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_2 | c54_tsqueryarray | 0 | 6 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}"} | {0.17,0.17,0.165,0.165} | {"{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"}
foo | c55_jsonarray | 0 | 0 | | |
foo_1_prt_1 | c55_jsonarray | 0 | 0 | | |
foo_1_prt_2 | c55_jsonarray | 0 | 0 | | |
foo | c57_pointarray | 0 | 0 | | |
foo_1_prt_1 | c57_pointarray | 0 | 0 | | |
foo_1_prt_2 | c57_pointarray | 0 | 0 | | |
foo | c58_linesegarray | 0 | 0 | | |
foo_1_prt_1 | c58_linesegarray | 0 | 0 | | |
foo_1_prt_2 | c58_linesegarray | 0 | 0 | | |
foo | c59_patharray | 0 | 0 | | |
foo_1_prt_1 | c59_patharray | 0 | 0 | | |
foo_1_prt_2 | c59_patharray | 0 | 0 | | |
foo | c60_boxarray | 0 | 0 | | |
foo_1_prt_1 | c60_boxarray | 0 | 0 | | |
foo_1_prt_2 | c60_boxarray | 0 | 0 | | |
foo | c61_polygonarray | 0 | 0 | | |
foo_1_prt_1 | c61_polygonarray | 0 | 0 | | |
foo_1_prt_2 | c61_polygonarray | 0 | 0 | | |
foo | c62_circlearray | 0 | 0 | | |
foo_1_prt_1 | c62_circlearray | 0 | 0 | | |
foo_1_prt_2 | c62_circlearray | 0 | 0 | | |
foo | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.17,0.17,0.1675} | {"{\"(0,1)\",\"(0,1)\"}","{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_1 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_2 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(0,1)\",\"(0,1)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.17,0.17,0.165,0.165} | {"{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"}
(183 rows)
-- Case 3: Partitions have MCVs but after merge, MCVs that do not qualify as
-- global MCV for the root will be used to create root histograms
TRUNCATE foo;
INSERT INTO foo
SELECT
i,
i%3,
i%4::bigint,
i%4,
i::bit,
(i%4)::bit(10)::bit varying(10),
(i)::bool,
(i%4)::char,
('a'||(i%4))::varchar(10),
('192.168.100.'||(i%4))::cidr,
('2018-4-'||(i%4)+1)::date,
(i%4)::numeric(8,2),
(i%4)::float8,
inet ('192.168.100.'||(i%4)),
i%4::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%4)::text)::text::macaddr,
(i%4)::text::money,
(i%4)::float4,
i%4,
i%4,
'aa'||(i%4)::text,
('12:'||(i%4)::text||':00')::time,
('12:'||(i%4)::text||':00 EST')::timetz,
('2018-01-01 '||'12:'||(i%4)::text||':00')::timestamp,
('2018-01-01 '||'12:'||(i%4)::text||':00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%4)::text||(i%4)::text)::uuid,
('foo'||(i%4)::text||' & rat'||(i%4)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,100) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i))::cidr,
('2018-4-'||(i%26+1))::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
('12:'||(i%60)::text||':00')::time,
('12:'||(i%60)::text||':00 EST')::timetz,
('2018-01-01 '||'12:'||(i%60)::text||':00')::timestamp,
('2018-01-01 '||'12:'||(i%60)::text||':00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%6)::text||(i%6)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,60) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i%4+61::bigint,
i%4+61,
(i%4+61)::bit,
(i%4+61)::bit(10)::bit varying(10),
(i%4+61)::bool,
(i%4+61)::char,
('a'||(i%4+61))::varchar(10),
('192.168.100.'||(i%4+61))::cidr,
('2018-4-'||(i%4)+27)::date,
(i%4+61)::numeric(8,2),
(i%4+61)::float8,
inet ('192.168.100.'||(i%4+61)),
i%4+61::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%4+61)::text)::text::macaddr,
(i%4+61)::text::money,
(i%4+61)::float4,
i%4+61,
i%4+61,
'aa'||(i%4+61)::text,
('12:59:'||(i%4+10)::text)::time,
('12:59:'||(i%4+10)::text||' EST')::timetz,
('2018-01-01 '||'12:59:'||(i%4+10)::text)::timestamp,
('2018-01-01 '||'12:59:'||(i%4+10)::text||' EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%4+6)::text||(i%4+6)::text)::uuid,
('foo'||(i%4)::text||' & rat'||(i%4)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,40) i;
ANALYZE foo;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------------------------------+-----------+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
foo | a | 0 | -0.495 | {1,2,3,4} | {0.01,0.01,0.01,0.01} | {1,25,50,75,100}
foo_1_prt_1 | a | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | a | 0 | -0.6 | {1,2,3,4} | {0.02,0.02,0.02,0.02} | {5,16,27,39,60}
foo | b | 0 | 6 | {1,4,0,2} | {0.17,0.17,0.165,0.165} | {3,5}
foo_1_prt_1 | b | 0 | 3 | {1,0,2} | {0.34,0.33,0.33} |
foo_1_prt_2 | b | 0 | 3 | {4,3,5} | {0.34,0.33,0.33} |
foo | c03_bigint | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c03_bigint | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c03_bigint | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c04_bigserial | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c04_bigserial | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c04_bigserial | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_1 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_2 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo | c06_bit_varying_10 | 0 | -0.32 | {0000000000,0000000001,0000000010,0000000011} | {0.125,0.125,0.125,0.125} | {0000000001,0000011110,0000111100,0000111110,0001000000}
foo_1_prt_1 | c06_bit_varying_10 | 0 | 4 | {0000000000,0000000001,0000000010,0000000011} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c06_bit_varying_10 | 0 | -0.64 | {0000111101,0000111110,0000111111,0001000000} | {0.1,0.1,0.1,0.1} | {0000000001,0000001111,0000011110,0000101101,0000111100}
foo | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_1 | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_2 | c07_bool | 0 | 1 | {t} | {1} |
foo | c08_char | 0 | 9 | {6,1,2,3} | {0.21,0.18,0.18,0.18} | {0,5,9}
foo_1_prt_1 | c08_char | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c08_char | 0 | 9 | {6,1,2,3} | {0.42,0.11,0.11,0.11} | {4,4,5,5,9}
foo | c09_varchar_10 | 0 | -0.32 | {a0,a1,a2,a3} | {0.125,0.125,0.125,0.125} | {a1,a36,a61,a63,a9}
foo_1_prt_1 | c09_varchar_10 | 0 | 4 | {a0,a1,a2,a3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c09_varchar_10 | 0 | -0.64 | {a61,a62,a63,a64} | {0.1,0.1,0.1,0.1} | {a1,a22,a36,a5,a9}
foo | c10_cidr | 0 | -0.32 | {192.168.100.0/32,192.168.100.1/32,192.168.100.2/32,192.168.100.3/32} | {0.125,0.125,0.125,0.125} | {192.168.100.1/32,192.168.100.30/32,192.168.100.60/32,192.168.100.62/32,192.168.100.64/32}
foo_1_prt_1 | c10_cidr | 0 | 4 | {192.168.100.0/32,192.168.100.1/32,192.168.100.2/32,192.168.100.3/32} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c10_cidr | 0 | -0.64 | {192.168.100.61/32,192.168.100.62/32,192.168.100.63/32,192.168.100.64/32} | {0.1,0.1,0.1,0.1} | {192.168.100.1/32,192.168.100.15/32,192.168.100.30/32,192.168.100.45/32,192.168.100.60/32}
foo | c11_date | 0 | -0.15 | {04-01-2018,04-02-2018,04-03-2018,04-04-2018} | {0.125,0.125,0.125,0.125} | {04-01-2018,04-11-2018,04-26-2018,04-28-2018,04-30-2018}
foo_1_prt_1 | c11_date | 0 | 4 | {04-01-2018,04-02-2018,04-03-2018,04-04-2018} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c11_date | 0 | -0.3 | {04-27-2018,04-28-2018,04-29-2018,04-30-2018} | {0.1,0.1,0.1,0.1} | {04-01-2018,04-06-2018,04-11-2018,04-19-2018,04-26-2018}
foo | c12_numeric_8_2 | 0 | -0.32 | {0.00,1.00,2.00,3.00} | {0.125,0.125,0.125,0.125} | {1.00,30.00,60.00,62.00,64.00}
foo_1_prt_1 | c12_numeric_8_2 | 0 | 4 | {0.00,1.00,2.00,3.00} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c12_numeric_8_2 | 0 | -0.64 | {61.00,62.00,63.00,64.00} | {0.1,0.1,0.1,0.1} | {1.00,15.00,30.00,45.00,60.00}
foo | c13_float8 | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c13_float8 | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c13_float8 | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c14_inet | 0 | -0.32 | {192.168.100.0,192.168.100.1,192.168.100.2,192.168.100.3} | {0.125,0.125,0.125,0.125} | {192.168.100.1,192.168.100.30,192.168.100.60,192.168.100.62,192.168.100.64}
foo_1_prt_1 | c14_inet | 0 | 4 | {192.168.100.0,192.168.100.1,192.168.100.2,192.168.100.3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c14_inet | 0 | -0.64 | {192.168.100.61,192.168.100.62,192.168.100.63,192.168.100.64} | {0.1,0.1,0.1,0.1} | {192.168.100.1,192.168.100.15,192.168.100.30,192.168.100.45,192.168.100.60}
foo | c15_int4 | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c15_int4 | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c15_int4 | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_1 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_2 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo | c17_macaddr | 0 | -0.32 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.125,0.125,0.125,0.125} | {12:34:56:78:90:01,12:34:56:78:90:30,12:34:56:78:90:60,12:34:56:78:90:62,12:34:56:78:90:64}
foo_1_prt_1 | c17_macaddr | 0 | 4 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c17_macaddr | 0 | -0.64 | {12:34:56:78:90:61,12:34:56:78:90:62,12:34:56:78:90:63,12:34:56:78:90:64} | {0.1,0.1,0.1,0.1} | {12:34:56:78:90:01,12:34:56:78:90:15,12:34:56:78:90:30,12:34:56:78:90:45,12:34:56:78:90:60}
foo | c18_money | 0 | -0.32 | {$0.00,$1.00,$2.00,$3.00} | {0.125,0.125,0.125,0.125} | {$1.00,$30.00,$60.00,$62.00,$64.00}
foo_1_prt_1 | c18_money | 0 | 4 | {$0.00,$1.00,$2.00,$3.00} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c18_money | 0 | -0.64 | {$61.00,$62.00,$63.00,$64.00} | {0.1,0.1,0.1,0.1} | {$1.00,$15.00,$30.00,$45.00,$60.00}
foo | c19_float4 | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c19_float4 | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c19_float4 | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c20_serial4 | 0 | -0.32 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c20_serial4 | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c20_serial4 | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c21_smallint | 0 | -0.315 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {1,30,60,62,64}
foo_1_prt_1 | c21_smallint | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c21_smallint | 0 | -0.64 | {61,62,63,64} | {0.1,0.1,0.1,0.1} | {1,15,30,45,60}
foo | c22_text | 0 | -0.32 | {aa0,aa1,aa2,aa3} | {0.125,0.125,0.125,0.125} | {aa1,aa36,aa61,aa63,aa9}
foo_1_prt_1 | c22_text | 0 | 4 | {aa0,aa1,aa2,aa3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c22_text | 0 | -0.64 | {aa61,aa62,aa63,aa64} | {0.1,0.1,0.1,0.1} | {aa1,aa22,aa36,aa5,aa9}
foo | c23_time | 0 | -0.315 | {12:00:00,12:01:00,12:02:00,12:03:00} | {0.125,0.125,0.125,0.125} | {12:00:00,12:29:00,12:59:00,12:59:11,12:59:13}
foo_1_prt_1 | c23_time | 0 | 4 | {12:00:00,12:01:00,12:02:00,12:03:00} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c23_time | 0 | -0.64 | {12:59:10,12:59:11,12:59:12,12:59:13} | {0.1,0.1,0.1,0.1} | {12:00:00,12:14:00,12:29:00,12:44:00,12:59:00}
foo | c24_timetz | 0 | -0.315 | {12:00:00-05,12:01:00-05,12:02:00-05,12:03:00-05} | {0.125,0.125,0.125,0.125} | {12:00:00-05,12:29:00-05,12:59:00-05,12:59:11-05,12:59:13-05}
foo_1_prt_1 | c24_timetz | 0 | 4 | {12:00:00-05,12:01:00-05,12:02:00-05,12:03:00-05} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c24_timetz | 0 | -0.64 | {12:59:10-05,12:59:11-05,12:59:12-05,12:59:13-05} | {0.1,0.1,0.1,0.1} | {12:00:00-05,12:14:00-05,12:29:00-05,12:44:00-05,12:59:00-05}
foo | c25_timestamp | 0 | -0.315 | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:01:00 2018","Mon Jan 01 12:02:00 2018","Mon Jan 01 12:03:00 2018"} | {0.125,0.125,0.125,0.125} | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:29:00 2018","Mon Jan 01 12:59:00 2018","Mon Jan 01 12:59:11 2018","Mon Jan 01 12:59:13 2018"}
foo_1_prt_1 | c25_timestamp | 0 | 4 | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:01:00 2018","Mon Jan 01 12:02:00 2018","Mon Jan 01 12:03:00 2018"} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c25_timestamp | 0 | -0.64 | {"Mon Jan 01 12:59:10 2018","Mon Jan 01 12:59:11 2018","Mon Jan 01 12:59:12 2018","Mon Jan 01 12:59:13 2018"} | {0.1,0.1,0.1,0.1} | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:14:00 2018","Mon Jan 01 12:29:00 2018","Mon Jan 01 12:44:00 2018","Mon Jan 01 12:59:00 2018"}
foo | c26_timestamptz | 0 | -0.315 | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:01:00 2018 PST","Mon Jan 01 09:02:00 2018 PST","Mon Jan 01 09:03:00 2018 PST"} | {0.125,0.125,0.125,0.125} | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:29:00 2018 PST","Mon Jan 01 09:59:00 2018 PST","Mon Jan 01 09:59:11 2018 PST","Mon Jan 01 09:59:13 2018 PST"}
foo_1_prt_1 | c26_timestamptz | 0 | 4 | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:01:00 2018 PST","Mon Jan 01 09:02:00 2018 PST","Mon Jan 01 09:03:00 2018 PST"} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c26_timestamptz | 0 | -0.64 | {"Mon Jan 01 09:59:10 2018 PST","Mon Jan 01 09:59:11 2018 PST","Mon Jan 01 09:59:12 2018 PST","Mon Jan 01 09:59:13 2018 PST"} | {0.1,0.1,0.1,0.1} | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:14:00 2018 PST","Mon Jan 01 09:29:00 2018 PST","Mon Jan 01 09:44:00 2018 PST","Mon Jan 01 09:59:00 2018 PST"}
foo | c27_uuid | 0 | 10 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.175,0.175,0.175,0.175} | {11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199}
foo_1_prt_1 | c27_uuid | 0 | 4 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c27_uuid | 0 | 10 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.1,0.1,0.1,0.1} | {11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199}
foo | c28_tsquery | 0 | -0.305 | {"'foo1' & 'rat1'","'foo3' & 'rat3'","'foo2' & 'rat2'","'foo0' & 'rat0'"} | {0.18,0.18,0.18,0.175} | {"'foo8' & 'rat8'","'foo31' & 'rat31'","'foo60' & 'rat60'","'foo32' & 'rat32'","'foo16' & 'rat16'"}
foo_1_prt_1 | c28_tsquery | 0 | 4 | {"'foo0' & 'rat0'","'foo1' & 'rat1'","'foo3' & 'rat3'","'foo2' & 'rat2'"} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | c28_tsquery | 0 | -0.61 | {"'foo1' & 'rat1'","'foo3' & 'rat3'","'foo2' & 'rat2'","'foo0' & 'rat0'"} | {0.11,0.11,0.11,0.1} | {"'foo8' & 'rat8'","'foo31' & 'rat31'","'foo60' & 'rat60'","'foo32' & 'rat32'","'foo16' & 'rat16'"}
foo | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_1 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_2 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo | c30_intarray | 0 | -0.495 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.01,0.01,0.01,0.01} | {"{1,1}","{25,1}","{50,2}","{75,3}","{100,4}"}
foo_1_prt_1 | c30_intarray | 0 | -1 | | | {"{1,1}","{25,1}","{50,2}","{75,3}","{100,4}"}
foo_1_prt_2 | c30_intarray | 0 | -0.6 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.02,0.02,0.02,0.02} | {"{5,5}","{16,4}","{27,3}","{39,3}","{60,0}"}
foo | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_1 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_2 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_1 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_2 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_1 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_2 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_1 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_2 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_1 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_2 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_1 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_2 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_1 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_2 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_1 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_2 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_1 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_2 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_1 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_2 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_1 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_2 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_1 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_2 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_1 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_2 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_1 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_2 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_1 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_2 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_1 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_2 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_1 | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_2 | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo | c55_jsonarray | 0 | 0 | | |
foo_1_prt_1 | c55_jsonarray | 0 | 0 | | |
foo_1_prt_2 | c55_jsonarray | 0 | 0 | | |
foo | c57_pointarray | 0 | 0 | | |
foo_1_prt_1 | c57_pointarray | 0 | 0 | | |
foo_1_prt_2 | c57_pointarray | 0 | 0 | | |
foo | c58_linesegarray | 0 | 0 | | |
foo_1_prt_1 | c58_linesegarray | 0 | 0 | | |
foo_1_prt_2 | c58_linesegarray | 0 | 0 | | |
foo | c59_patharray | 0 | 0 | | |
foo_1_prt_1 | c59_patharray | 0 | 0 | | |
foo_1_prt_2 | c59_patharray | 0 | 0 | | |
foo | c60_boxarray | 0 | 0 | | |
foo_1_prt_1 | c60_boxarray | 0 | 0 | | |
foo_1_prt_2 | c60_boxarray | 0 | 0 | | |
foo | c61_polygonarray | 0 | 0 | | |
foo_1_prt_1 | c61_polygonarray | 0 | 0 | | |
foo_1_prt_2 | c61_polygonarray | 0 | 0 | | |
foo | c62_circlearray | 0 | 0 | | |
foo_1_prt_1 | c62_circlearray | 0 | 0 | | |
foo_1_prt_2 | c62_circlearray | 0 | 0 | | |
foo | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_1 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_2 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
(183 rows)
-- Case 4: A partition has MCVs but after merge, those MCVs do not qualify as
-- global MCV for the root will be used to create root histograms
TRUNCATE foo;
INSERT INTO foo
SELECT
i,
i%3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i%128))::cidr,
('2018-4-'||(i%15)+1)::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i%128)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%50)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
((i%12)::text||':59:59')::time,
((i%12)::text||':59:00 EST')::timetz,
('2018-01-01 '||(i%12)::text||':59:00')::timestamp,
('2018-01-01 '||(i%12)::text||':59:00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%5)::text||(i%5)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,100) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i%4+61::bigint,
i%4+61,
(i%4+61)::bit,
(i%4+61)::bit(10)::bit varying(10),
(i%4+61)::bool,
(i%4+61)::char,
('a'||(i%4+61))::varchar(10),
('192.168.100.'||(i%4+61))::cidr,
('2018-4-'||(i%4+26))::date,
(i%4+61)::numeric(8,2),
(i%4+61)::float8,
inet ('192.168.100.'||(i%4+61)),
i%4+61::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%4+61)::text)::text::macaddr,
(i%4+61)::text::money,
(i%4+61)::float4,
i%4+61,
i%4+61,
'aa'||(i%4+61)::text,
('12:'||(i%4+56)::text||':00')::time,
('12:'||(i%4+56)::text||':00 EST')::timetz,
('2018-01-01 '||'12:'||(i%4+56)::text||':00')::timestamp,
('2018-01-01 '||'12:'||(i%4+56)::text||':00 EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%4+6)::text||(i%4+6)::text)::uuid,
('foo'||(i%4+61)::text||' & rat'||(i%4+61)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,8) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i))::cidr,
('2018-4-'||(i%25+1))::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
('12:00:'||(i%60)::text)::time,
('12:00:'||(i%60)::text||' EST')::timetz,
('2018-01-01 '||'12:00'||(i%60)::text)::timestamp,
('2018-01-01 '||'12:00'||(i%60)::text||' EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%10)::text||(i%10)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,60) i;
ANALYZE foo;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' and attname != 'a' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------------------------------+-----------+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
foo | b | 0 | 6 | {1,0,2,4} | {0.20238096,0.19642857,0.19642857,0.13690476} | {3,5}
foo_1_prt_1 | b | 0 | 3 | {1,0,2} | {0.34,0.33,0.33} |
foo_1_prt_2 | b | 0 | 3 | {4,5,3} | {0.3382353,0.3382353,0.32352942} |
foo | c03_bigint | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c03_bigint | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c03_bigint | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c04_bigserial | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c04_bigserial | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c04_bigserial | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_1 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_2 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo | c06_bit_varying_10 | 0 | -0.58928573 | {0000111101,0000111110,0000111111,0001000000} | {0.011904762,0.011904762,0.011904762,0.011904762} | {0000000001,0000011001,0000110010,0001001011,0001100100}
foo_1_prt_1 | c06_bit_varying_10 | 0 | -1 | | | {0000000001,0000011001,0000110010,0001001011,0001100100}
foo_1_prt_2 | c06_bit_varying_10 | 0 | -0.9411765 | {0000111101,0000111110,0000111111,0001000000} | {0.029411765,0.029411765,0.029411765,0.029411765} | {0000000001,0000001111,0000011110,0000101101,0000111100}
foo | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_1 | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_2 | c07_bool | 0 | 1 | {t} | {1} |
foo | c08_char | 0 | 9 | {1,2,3,4} | {0.13690476,0.13095239,0.13095239,0.13095239} | {5,6,7,8,9}
foo_1_prt_1 | c08_char | 0 | 9 | {1,2,3,4} | {0.12,0.11,0.11,0.11} | {5,6,7,8,9}
foo_1_prt_2 | c08_char | 0 | -0.13235295 | {1,2,3,4} | {0.16176471,0.16176471,0.16176471,0.16176471} | {5,5,6,6,9}
foo | c09_varchar_10 | 0 | -0.58928573 | {a61,a62,a63,a64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {a1,a30,a53,a76,a99}
foo_1_prt_1 | c09_varchar_10 | 0 | -1 | | | {a1,a30,a53,a76,a99}
foo_1_prt_2 | c09_varchar_10 | 0 | -0.9411765 | {a61,a62,a63,a64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {a1,a22,a36,a5,a9}
foo | c10_cidr | 0 | -0.58928573 | {192.168.100.61/32,192.168.100.62/32,192.168.100.63/32,192.168.100.64/32} | {0.011904762,0.011904762,0.011904762,0.011904762} | {192.168.100.1/32,192.168.100.25/32,192.168.100.50/32,192.168.100.75/32,192.168.100.100/32}
foo_1_prt_1 | c10_cidr | 0 | -1 | | | {192.168.100.1/32,192.168.100.25/32,192.168.100.50/32,192.168.100.75/32,192.168.100.100/32}
foo_1_prt_2 | c10_cidr | 0 | -0.9411765 | {192.168.100.61/32,192.168.100.62/32,192.168.100.63/32,192.168.100.64/32} | {0.029411765,0.029411765,0.029411765,0.029411765} | {192.168.100.1/32,192.168.100.15/32,192.168.100.30/32,192.168.100.45/32,192.168.100.60/32}
foo | c11_date | 0 | -0.17261904 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.05952381,0.05952381,0.05952381,0.05952381} | {04-01-2018,04-09-2018,04-12-2018,04-15-2018,04-29-2018}
foo_1_prt_1 | c11_date | 0 | -0.15 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.07,0.07,0.07,0.07} | {04-01-2018,04-07-2018,04-10-2018,04-12-2018,04-15-2018}
foo_1_prt_2 | c11_date | 0 | -0.42647058 | {04-02-2018,04-03-2018,04-04-2018,04-05-2018} | {0.04411765,0.04411765,0.04411765,0.04411765} | {04-01-2018,04-09-2018,04-15-2018,04-22-2018,04-29-2018}
foo | c12_numeric_8_2 | 0 | -0.58928573 | {61.00,62.00,63.00,64.00} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1.00,25.00,50.00,75.00,100.00}
foo_1_prt_1 | c12_numeric_8_2 | 0 | -1 | | | {1.00,25.00,50.00,75.00,100.00}
foo_1_prt_2 | c12_numeric_8_2 | 0 | -0.9411765 | {61.00,62.00,63.00,64.00} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1.00,15.00,30.00,45.00,60.00}
foo | c13_float8 | 0 | -0.5833333 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c13_float8 | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c13_float8 | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c14_inet | 0 | -0.58928573 | {192.168.100.61,192.168.100.62,192.168.100.63,192.168.100.64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {192.168.100.1,192.168.100.25,192.168.100.50,192.168.100.75,192.168.100.100}
foo_1_prt_1 | c14_inet | 0 | -1 | | | {192.168.100.1,192.168.100.25,192.168.100.50,192.168.100.75,192.168.100.100}
foo_1_prt_2 | c14_inet | 0 | -0.9411765 | {192.168.100.61,192.168.100.62,192.168.100.63,192.168.100.64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {192.168.100.1,192.168.100.15,192.168.100.30,192.168.100.45,192.168.100.60}
foo | c15_int4 | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c15_int4 | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c15_int4 | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_1 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_2 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo | c17_macaddr | 0 | -0.38690478 | | | {12:34:56:78:90:00,12:34:56:78:90:15,12:34:56:78:90:30,12:34:56:78:90:49,12:34:56:78:90:64}
foo_1_prt_1 | c17_macaddr | 0 | -0.5 | {12:34:56:78:90:00,12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03} | {0.02,0.02,0.02,0.02} | {12:34:56:78:90:04,12:34:56:78:90:15,12:34:56:78:90:26,12:34:56:78:90:38,12:34:56:78:90:49}
foo_1_prt_2 | c17_macaddr | 0 | -0.9411765 | {12:34:56:78:90:61,12:34:56:78:90:62,12:34:56:78:90:63,12:34:56:78:90:64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {12:34:56:78:90:01,12:34:56:78:90:15,12:34:56:78:90:30,12:34:56:78:90:45,12:34:56:78:90:60}
foo | c18_money | 0 | -0.58928573 | {$61.00,$62.00,$63.00,$64.00} | {0.011904762,0.011904762,0.011904762,0.011904762} | {$1.00,$25.00,$50.00,$75.00,$100.00}
foo_1_prt_1 | c18_money | 0 | -1 | | | {$1.00,$25.00,$50.00,$75.00,$100.00}
foo_1_prt_2 | c18_money | 0 | -0.9411765 | {$61.00,$62.00,$63.00,$64.00} | {0.029411765,0.029411765,0.029411765,0.029411765} | {$1.00,$15.00,$30.00,$45.00,$60.00}
foo | c19_float4 | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c19_float4 | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c19_float4 | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c20_serial4 | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c20_serial4 | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c20_serial4 | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c21_smallint | 0 | -0.58928573 | {61,62,63,64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {1,25,50,75,100}
foo_1_prt_1 | c21_smallint | 0 | -1 | | | {1,25,50,75,100}
foo_1_prt_2 | c21_smallint | 0 | -0.9411765 | {61,62,63,64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {1,15,30,45,60}
foo | c22_text | 0 | -0.58928573 | {aa61,aa62,aa63,aa64} | {0.011904762,0.011904762,0.011904762,0.011904762} | {aa1,aa30,aa53,aa76,aa99}
foo_1_prt_1 | c22_text | 0 | -1 | | | {aa1,aa30,aa53,aa76,aa99}
foo_1_prt_2 | c22_text | 0 | -0.9411765 | {aa61,aa62,aa63,aa64} | {0.029411765,0.029411765,0.029411765,0.029411765} | {aa1,aa22,aa36,aa5,aa9}
foo | c23_time | 0 | -0.44642857 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.05357143,0.05357143,0.05357143,0.05357143} | {00:59:59,09:59:59,12:00:14,12:00:44,12:59:00}
foo_1_prt_1 | c23_time | 0 | -0.12 | {01:59:59,02:59:59,03:59:59,04:59:59} | {0.09,0.09,0.09,0.09} | {00:59:59,05:59:59,07:59:59,09:59:59,11:59:59}
foo_1_prt_2 | c23_time | 0 | -0.9411765 | {12:56:00,12:57:00,12:58:00,12:59:00} | {0.029411765,0.029411765,0.029411765,0.029411765} | {12:00:00,12:00:14,12:00:29,12:00:44,12:00:59}
foo | c24_timetz | 0 | -0.44642857 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.05357143,0.05357143,0.05357143,0.05357143} | {00:59:00-05,09:59:00-05,12:00:14-05,12:00:44-05,12:59:00-05}
foo_1_prt_1 | c24_timetz | 0 | -0.12 | {01:59:00-05,02:59:00-05,03:59:00-05,04:59:00-05} | {0.09,0.09,0.09,0.09} | {00:59:00-05,05:59:00-05,07:59:00-05,09:59:00-05,11:59:00-05}
foo_1_prt_2 | c24_timetz | 0 | -0.9411765 | {12:56:00-05,12:57:00-05,12:58:00-05,12:59:00-05} | {0.029411765,0.029411765,0.029411765,0.029411765} | {12:00:00-05,12:00:14-05,12:00:29-05,12:00:44-05,12:00:59-05}
foo | c25_timestamp | 0 | -0.42261904 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.05357143,0.05357143,0.05357143,0.05357143} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 09:59:00 2018","Mon Jan 01 12:13:00 2018","Mon Jan 01 12:41:00 2018","Mon Jan 01 12:59:00 2018"}
foo_1_prt_1 | c25_timestamp | 0 | -0.12 | {"Mon Jan 01 01:59:00 2018","Mon Jan 01 02:59:00 2018","Mon Jan 01 03:59:00 2018","Mon Jan 01 04:59:00 2018"} | {0.09,0.09,0.09,0.09} | {"Mon Jan 01 00:59:00 2018","Mon Jan 01 05:59:00 2018","Mon Jan 01 07:59:00 2018","Mon Jan 01 09:59:00 2018","Mon Jan 01 11:59:00 2018"}
foo_1_prt_2 | c25_timestamp | 0 | -0.88235295 | {"Mon Jan 01 12:56:00 2018","Mon Jan 01 12:57:00 2018","Mon Jan 01 12:58:00 2018","Mon Jan 01 12:59:00 2018"} | {0.04411765,0.04411765,0.04411765,0.04411765} | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:13:00 2018","Mon Jan 01 12:27:00 2018","Mon Jan 01 12:41:00 2018","Mon Jan 01 12:55:00 2018"}
foo | c26_timestamptz | 0 | -0.42261904 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.05357143,0.05357143,0.05357143,0.05357143} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 06:59:00 2018 PST","Mon Jan 01 09:13:00 2018 PST","Mon Jan 01 09:41:00 2018 PST","Mon Jan 01 09:59:00 2018 PST"}
foo_1_prt_1 | c26_timestamptz | 0 | -0.12 | {"Sun Dec 31 22:59:00 2017 PST","Sun Dec 31 23:59:00 2017 PST","Mon Jan 01 00:59:00 2018 PST","Mon Jan 01 01:59:00 2018 PST"} | {0.09,0.09,0.09,0.09} | {"Sun Dec 31 21:59:00 2017 PST","Mon Jan 01 02:59:00 2018 PST","Mon Jan 01 04:59:00 2018 PST","Mon Jan 01 06:59:00 2018 PST","Mon Jan 01 08:59:00 2018 PST"}
foo_1_prt_2 | c26_timestamptz | 0 | -0.88235295 | {"Mon Jan 01 09:56:00 2018 PST","Mon Jan 01 09:57:00 2018 PST","Mon Jan 01 09:58:00 2018 PST","Mon Jan 01 09:59:00 2018 PST"} | {0.04411765,0.04411765,0.04411765,0.04411765} | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:13:00 2018 PST","Mon Jan 01 09:27:00 2018 PST","Mon Jan 01 09:41:00 2018 PST","Mon Jan 01 09:55:00 2018 PST"}
foo | c27_uuid | 0 | 10 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.11904762,0.11904762,0.11904762,0.11904762} | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111199}
foo_1_prt_1 | c27_uuid | 0 | 5 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.2,0.2,0.2,0.2} |
foo_1_prt_2 | c27_uuid | 0 | -0.14705883 | {11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111177,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199} | {0.11764706,0.11764706,0.11764706,0.11764706} | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}
foo | c28_tsquery | 0 | -0.5952381 | {"'foo61' & 'rat61'","'foo64' & 'rat64'","'foo62' & 'rat62'","'foo63' & 'rat63'"} | {0.017857144,0.017857144,0.017857144,0.017857144} | {"'foo8' & 'rat8'","'foo90' & 'rat90'","'foo60' & 'rat60'","'foo32' & 'rat32'","'foo100' & 'rat100'"}
foo_1_prt_1 | c28_tsquery | 0 | -1 | | | {"'foo8' & 'rat8'","'foo35' & 'rat35'","'foo57' & 'rat57'","'foo36' & 'rat36'","'foo100' & 'rat100'"}
foo_1_prt_2 | c28_tsquery | 0 | -0.9411765 | {"'foo61' & 'rat61'","'foo64' & 'rat64'","'foo62' & 'rat62'","'foo63' & 'rat63'"} | {0.029411765,0.029411765,0.029411765,0.029411765} | {"'foo8' & 'rat8'","'foo14' & 'rat14'","'foo11' & 'rat11'","'foo47' & 'rat47'","'foo16' & 'rat16'"}
foo | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}"} | {0.17261904,0.17261904,0.16666667} | {"{a0,b0}","{a4,b4}","{a5,b5}"}
foo_1_prt_1 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.17,0.17,0.17,0.17} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_2 | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a0,b0}","{a3,b3}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{a4,b4}","{a5,b5}"}
foo | c30_intarray | 0 | -0.58928573 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.011904762,0.011904762,0.011904762,0.011904762} | {"{1,1}","{25,1}","{50,2}","{75,3}","{100,4}"}
foo_1_prt_1 | c30_intarray | 0 | -1 | | | {"{1,1}","{25,1}","{50,2}","{75,3}","{100,4}"}
foo_1_prt_2 | c30_intarray | 0 | -0.88235295 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.029411765,0.029411765,0.029411765,0.029411765} | {"{5,5}","{15,3}","{30,0}","{45,3}","{60,0}"}
foo | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_1 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_2 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}"} | {0.17261904,0.17261904,0.16666667} | {"{0000000000,0000000001}","{0000000100,0000000101}","{0000000101,0000000000}"}
foo_1_prt_1 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.17,0.17,0.17,0.17} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_2 | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000000,0000000001}","{0000000011,0000000100}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{0000000100,0000000101}","{0000000101,0000000000}"}
foo | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_1 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_2 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_1 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_2 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.17261904,0.17261904,0.16666667} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_1 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_2 | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.0/32,192.168.101.0/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}"} | {0.17261904,0.17261904,0.16666667} | {"{01-01-2018,01-01-2018}","{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_1 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.17,0.17,0.17,0.17} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_2 | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-01-2018,01-01-2018}","{01-04-2018,01-04-2018}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"}
foo | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}"} | {0.17261904,0.17261904,0.16666667} | {"{192.168.100.0,192.168.100.1}","{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_1 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.17,0.17,0.17,0.17} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_2 | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.0,192.168.100.1}","{192.168.100.3,192.168.100.4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"}
foo | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_1 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_2 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.17261904,0.17261904,0.16666667} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_1 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.17,0.17,0.17,0.17} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_2 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_1 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_2 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17261904,0.17261904,0.16666667} | {"{0,1}","{4,5}","{5,0}"}
foo_1_prt_1 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.17,0.17,0.17,0.17} | {"{0,1}","{5,0}"}
foo_1_prt_2 | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{0,1}","{3,4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{4,5}","{5,0}"}
foo | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}"} | {0.17261904,0.17261904,0.16666667} | {"{abcd0,def1}","{abcd4,def5}","{abcd5,def0}"}
foo_1_prt_1 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.17,0.17,0.17,0.17} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_2 | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd0,def1}","{abcd3,def4}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{abcd4,def5}","{abcd5,def0}"}
foo | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}"} | {0.17261904,0.17261904,0.16666667} | {"{00:00:00,01:00:00}","{04:00:00,05:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_1 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.17,0.17,0.17,0.17} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_2 | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{00:00:00,01:00:00}","{03:00:00,04:00:00}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{04:00:00,05:00:00}","{05:00:00,00:00:00}"}
foo | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.17261904,0.17261904,0.16666667} | {"{00:00:59-08,01:00:59-05}","{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_1 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.17,0.17,0.17,0.17} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_2 | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{00:00:59-08,01:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.17261904,0.17261904,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_1 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_2 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.17261904,0.17261904,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_1 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.17,0.17,0.17,0.17} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_2 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.17261904,0.17261904,0.16666667} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_1 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.17,0.17,0.17,0.17} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_2 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo | c54_tsqueryarray | 0 | 6 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"} | {0.17261904,0.17261904,0.16666667,0.16666667} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_1 | c54_tsqueryarray | 0 | 6 | {"{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"} | {0.17,0.17,0.17,0.17} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_2 | c54_tsqueryarray | 0 | 6 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"}
foo | c55_jsonarray | 0 | 0 | | |
foo_1_prt_1 | c55_jsonarray | 0 | 0 | | |
foo_1_prt_2 | c55_jsonarray | 0 | 0 | | |
foo | c57_pointarray | 0 | 0 | | |
foo_1_prt_1 | c57_pointarray | 0 | 0 | | |
foo_1_prt_2 | c57_pointarray | 0 | 0 | | |
foo | c58_linesegarray | 0 | 0 | | |
foo_1_prt_1 | c58_linesegarray | 0 | 0 | | |
foo_1_prt_2 | c58_linesegarray | 0 | 0 | | |
foo | c59_patharray | 0 | 0 | | |
foo_1_prt_1 | c59_patharray | 0 | 0 | | |
foo_1_prt_2 | c59_patharray | 0 | 0 | | |
foo | c60_boxarray | 0 | 0 | | |
foo_1_prt_1 | c60_boxarray | 0 | 0 | | |
foo_1_prt_2 | c60_boxarray | 0 | 0 | | |
foo | c61_polygonarray | 0 | 0 | | |
foo_1_prt_1 | c61_polygonarray | 0 | 0 | | |
foo_1_prt_2 | c61_polygonarray | 0 | 0 | | |
foo | c62_circlearray | 0 | 0 | | |
foo_1_prt_1 | c62_circlearray | 0 | 0 | | |
foo_1_prt_2 | c62_circlearray | 0 | 0 | | |
foo | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.17261904,0.17261904,0.16666667} | {"{\"(0,1)\",\"(0,1)\"}","{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_1 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.17,0.17,0.17,0.17} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_2 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(0,1)\",\"(0,1)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.1764706,0.1764706,0.16176471,0.16176471} | {"{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"}
(180 rows)
-- Case 5: A partition has MCVs but after merge, those MCVs qualify as global
-- MCVs for the root
TRUNCATE foo;
INSERT INTO foo
SELECT
i,
i%3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i%128))::cidr,
('2018-'||(i%12)+1||'-'||(i%15)+1)::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i%128)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%50)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
('12:'||(i%60)::text||':'||(i%30)::text)::time,
('12:'||(i%60)::text||':'||(i%30)::text||' EST')::timetz,
('2018-01-01 '||'12:'||(i%60)::text||':'||(i%30)::text)::timestamp,
('2018-01-01 '||'12:'||(i%60)::text||':'||(i%30)::text||' EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%5)::text||(i%5)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,60) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i%4+61::bigint,
i%4+61,
(i%4+61)::bit,
(i%4+61)::bit(10)::bit varying(10),
(i%4+61)::bool,
(i%4+61)::char,
('a'||(i%4+61))::varchar(10),
('192.168.100.'||(i%4+61))::cidr,
('2018-5-'||(i%4)+16)::date,
(i%4+61)::numeric(8,2),
(i%4+61)::float8,
inet ('192.168.100.'||(i%4+61)),
i%4+61::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i%4+61)::text)::text::macaddr,
(i%4+61)::text::money,
(i%4+61)::float4,
i%4+61,
i%4+61,
'aa'||(i%4+61)::text,
('01:00:'||(i%4)::text)::time,
('01:00:'||(i%4)::text||' EST')::timetz,
('2018-01-01 '||'01:00:'||(i%4)::text)::timestamp,
('2018-01-01 '||'01:00:'||(i%4)::text||' EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%4+6)::text||(i%4+6)::text)::uuid,
('foo'||(i%4+61)::text||' & rat'||(i%4+61)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,8) i;
INSERT INTO foo
SELECT
i,
i%3+3,
i::bigint,
i,
i::bit,
(i)::bit(10)::bit varying(10),
(i)::bool,
(i)::char,
('a'||(i))::varchar(10),
('192.168.100.'||(i))::cidr,
('2018-'||(i%12)+1||'-'||(i%15)+1)::date,
(i)::numeric(8,2),
(i)::float8,
inet ('192.168.100.'||(i)),
i::int4,
interval '24 hours',
macaddr ('12:34:56:78:90:'||(i)::text)::text::macaddr,
(i)::text::money,
(i)::float4,
i,
i,
'aa'||(i)::text,
('12:'||(i%60)::text||':'||(i%30)::text)::time,
('12:'||(i%60)::text||':'||(i%30)::text||' EST')::timetz,
('2018-01-01 '||'12:'||(i%60)::text||':'||(i%30)::text)::timestamp,
('2018-01-01 '||'12:'||(i%60)::text||':'||(i%30)::text||' EST')::timestamptz,
('11111111-1111-1111-1111-1111111111'||(i%10)::text||(i%10)::text)::uuid,
('foo'||(i)::text||' & rat'||(i)::text)::tsquery,
(get_input_fields(i)).*
FROM generate_series(1,10) i;
ANALYZE foo;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' and attname != 'a' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------------------------------+-----------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
foo | b | 0 | 6 | {0,1,2} | {0.25641027,0.25641027,0.25641027} | {3,4,5}
foo_1_prt_1 | b | 0 | 3 | {0,1,2} | {0.33333334,0.33333334,0.33333334} |
foo_1_prt_2 | b | 0 | -0.16666667 | {4,5,3} | {0.3888889,0.33333334,0.2777778} |
foo | c03_bigint | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c03_bigint | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c03_bigint | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c04_bigserial | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c04_bigserial | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c04_bigserial | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_1 | c05_bit | 0 | 2 | {0,1} | {0.5,0.5} |
foo_1_prt_2 | c05_bit | 0 | -0.11111111 | {0,1} | {0.5,0.5} |
foo | c06_bit_varying_10 | 0 | -0.8076923 | {0000111101,0000111110,0000111111,0001000000} | {0.025641026,0.025641026,0.025641026,0.025641026} | {0000000001,0000001111,0000011110,0000101101,0000111100}
foo_1_prt_1 | c06_bit_varying_10 | 0 | -1 | | | {0000000001,0000001111,0000011110,0000101101,0000111100}
foo_1_prt_2 | c06_bit_varying_10 | 0 | -0.7777778 | {0000111101,0000111110,0000111111,0001000000} | {0.11111111,0.11111111,0.11111111,0.11111111} | {0000000001,0000000011,0000000101,0000000111,0000001010}
foo | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_1 | c07_bool | 0 | 1 | {t} | {1} |
foo_1_prt_2 | c07_bool | 0 | 1 | {t} | {1} |
foo | c08_char | 0 | -0.115384616 | {1,2,3,4} | {0.16666667,0.14102565,0.14102565,0.14102565} | {2,5,6,9}
foo_1_prt_1 | c08_char | 0 | -0.15 | {1,2,3,4} | {0.18333334,0.18333334,0.18333334,0.18333334} | {5,5,5,6,9}
foo_1_prt_2 | c08_char | 0 | -0.5 | {6,1} | {0.5,0.11111111} | {2,3,5,7,9}
foo | c09_varchar_10 | 0 | -0.8076923 | {a61,a62,a63,a64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {a1,a22,a4,a6,a9}
foo_1_prt_1 | c09_varchar_10 | 0 | -1 | | | {a1,a22,a36,a5,a9}
foo_1_prt_2 | c09_varchar_10 | 0 | -0.7777778 | {a61,a62,a63,a64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {a1,a2,a4,a6,a9}
foo | c10_cidr | 0 | -0.8076923 | {192.168.100.61/32,192.168.100.62/32,192.168.100.63/32,192.168.100.64/32} | {0.025641026,0.025641026,0.025641026,0.025641026} | {192.168.100.1/32,192.168.100.15/32,192.168.100.30/32,192.168.100.45/32,192.168.100.60/32}
foo_1_prt_1 | c10_cidr | 0 | -1 | | | {192.168.100.1/32,192.168.100.15/32,192.168.100.30/32,192.168.100.45/32,192.168.100.60/32}
foo_1_prt_2 | c10_cidr | 0 | -0.7777778 | {192.168.100.61/32,192.168.100.62/32,192.168.100.63/32,192.168.100.64/32} | {0.11111111,0.11111111,0.11111111,0.11111111} | {192.168.100.1/32,192.168.100.3/32,192.168.100.5/32,192.168.100.7/32,192.168.100.10/32}
foo | c11_date | 0 | -0.8076923 | {05-16-2018,05-17-2018,05-18-2018,05-19-2018} | {0.025641026,0.025641026,0.025641026,0.025641026} | {01-01-2018,04-04-2018,06-15-2018,09-15-2018,12-15-2018}
foo_1_prt_1 | c11_date | 0 | -1 | | | {01-01-2018,03-15-2018,06-15-2018,09-15-2018,12-15-2018}
foo_1_prt_2 | c11_date | 0 | -0.7777778 | {05-16-2018,05-17-2018,05-18-2018,05-19-2018} | {0.11111111,0.11111111,0.11111111,0.11111111} | {02-02-2018,04-04-2018,06-06-2018,08-08-2018,11-11-2018}
foo | c12_numeric_8_2 | 0 | -0.8076923 | {61.00,62.00,63.00,64.00} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1.00,15.00,30.00,45.00,60.00}
foo_1_prt_1 | c12_numeric_8_2 | 0 | -1 | | | {1.00,15.00,30.00,45.00,60.00}
foo_1_prt_2 | c12_numeric_8_2 | 0 | -0.7777778 | {61.00,62.00,63.00,64.00} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1.00,3.00,5.00,7.00,10.00}
foo | c13_float8 | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c13_float8 | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c13_float8 | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c14_inet | 0 | -0.8076923 | {192.168.100.61,192.168.100.62,192.168.100.63,192.168.100.64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {192.168.100.1,192.168.100.15,192.168.100.30,192.168.100.45,192.168.100.60}
foo_1_prt_1 | c14_inet | 0 | -1 | | | {192.168.100.1,192.168.100.15,192.168.100.30,192.168.100.45,192.168.100.60}
foo_1_prt_2 | c14_inet | 0 | -0.7777778 | {192.168.100.61,192.168.100.62,192.168.100.63,192.168.100.64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {192.168.100.1,192.168.100.3,192.168.100.5,192.168.100.7,192.168.100.10}
foo | c15_int4 | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c15_int4 | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c15_int4 | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_1 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo_1_prt_2 | c16_interval | 0 | 1 | {"@ 24 hours"} | {1} |
foo | c17_macaddr | 0 | -0.67948717 | {12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03,12:34:56:78:90:04} | {0.025641026,0.025641026,0.025641026,0.025641026} | {12:34:56:78:90:00,12:34:56:78:90:10,12:34:56:78:90:23,12:34:56:78:90:49,12:34:56:78:90:64}
foo_1_prt_1 | c17_macaddr | 0 | -0.8333333 | {12:34:56:78:90:01,12:34:56:78:90:02,12:34:56:78:90:03,12:34:56:78:90:04} | {0.033333335,0.033333335,0.033333335,0.033333335} | {12:34:56:78:90:00,12:34:56:78:90:10,12:34:56:78:90:23,12:34:56:78:90:36,12:34:56:78:90:49}
foo_1_prt_2 | c17_macaddr | 0 | -0.7777778 | {12:34:56:78:90:61,12:34:56:78:90:62,12:34:56:78:90:63,12:34:56:78:90:64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {12:34:56:78:90:01,12:34:56:78:90:03,12:34:56:78:90:05,12:34:56:78:90:07,12:34:56:78:90:10}
foo | c18_money | 0 | -0.8076923 | {$61.00,$62.00,$63.00,$64.00} | {0.025641026,0.025641026,0.025641026,0.025641026} | {$1.00,$15.00,$30.00,$45.00,$60.00}
foo_1_prt_1 | c18_money | 0 | -1 | | | {$1.00,$15.00,$30.00,$45.00,$60.00}
foo_1_prt_2 | c18_money | 0 | -0.7777778 | {$61.00,$62.00,$63.00,$64.00} | {0.11111111,0.11111111,0.11111111,0.11111111} | {$1.00,$3.00,$5.00,$7.00,$10.00}
foo | c19_float4 | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c19_float4 | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c19_float4 | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c20_serial4 | 0 | -0.8076923 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c20_serial4 | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c20_serial4 | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c21_smallint | 0 | -0.7948718 | {61,62,63,64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {1,15,30,45,60}
foo_1_prt_1 | c21_smallint | 0 | -1 | | | {1,15,30,45,60}
foo_1_prt_2 | c21_smallint | 0 | -0.7777778 | {61,62,63,64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {1,3,5,7,10}
foo | c22_text | 0 | -0.8076923 | {aa61,aa62,aa63,aa64} | {0.025641026,0.025641026,0.025641026,0.025641026} | {aa1,aa22,aa4,aa6,aa9}
foo_1_prt_1 | c22_text | 0 | -1 | | | {aa1,aa22,aa36,aa5,aa9}
foo_1_prt_2 | c22_text | 0 | -0.7777778 | {aa61,aa62,aa63,aa64} | {0.11111111,0.11111111,0.11111111,0.11111111} | {aa1,aa2,aa4,aa6,aa9}
foo | c23_time | 0 | -0.8076923 | {01:00:00,01:00:01,01:00:02,01:00:03} | {0.025641026,0.025641026,0.025641026,0.025641026} | {12:00:00,12:14:14,12:29:29,12:44:14,12:59:29}
foo_1_prt_1 | c23_time | 0 | -1 | | | {12:00:00,12:14:14,12:29:29,12:44:14,12:59:29}
foo_1_prt_2 | c23_time | 0 | -0.7777778 | {01:00:00,01:00:01,01:00:02,01:00:03} | {0.11111111,0.11111111,0.11111111,0.11111111} | {12:01:01,12:03:03,12:05:05,12:07:07,12:10:10}
foo | c24_timetz | 0 | -0.8076923 | {01:00:00-05,01:00:01-05,01:00:02-05,01:00:03-05} | {0.025641026,0.025641026,0.025641026,0.025641026} | {12:00:00-05,12:14:14-05,12:29:29-05,12:44:14-05,12:59:29-05}
foo_1_prt_1 | c24_timetz | 0 | -1 | | | {12:00:00-05,12:14:14-05,12:29:29-05,12:44:14-05,12:59:29-05}
foo_1_prt_2 | c24_timetz | 0 | -0.7777778 | {01:00:00-05,01:00:01-05,01:00:02-05,01:00:03-05} | {0.11111111,0.11111111,0.11111111,0.11111111} | {12:01:01-05,12:03:03-05,12:05:05-05,12:07:07-05,12:10:10-05}
foo | c25_timestamp | 0 | -0.8076923 | {"Mon Jan 01 01:00:00 2018","Mon Jan 01 01:00:01 2018","Mon Jan 01 01:00:02 2018","Mon Jan 01 01:00:03 2018"} | {0.025641026,0.025641026,0.025641026,0.025641026} | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:14:14 2018","Mon Jan 01 12:29:29 2018","Mon Jan 01 12:44:14 2018","Mon Jan 01 12:59:29 2018"}
foo_1_prt_1 | c25_timestamp | 0 | -1 | | | {"Mon Jan 01 12:00:00 2018","Mon Jan 01 12:14:14 2018","Mon Jan 01 12:29:29 2018","Mon Jan 01 12:44:14 2018","Mon Jan 01 12:59:29 2018"}
foo_1_prt_2 | c25_timestamp | 0 | -0.7777778 | {"Mon Jan 01 01:00:00 2018","Mon Jan 01 01:00:01 2018","Mon Jan 01 01:00:02 2018","Mon Jan 01 01:00:03 2018"} | {0.11111111,0.11111111,0.11111111,0.11111111} | {"Mon Jan 01 12:01:01 2018","Mon Jan 01 12:03:03 2018","Mon Jan 01 12:05:05 2018","Mon Jan 01 12:07:07 2018","Mon Jan 01 12:10:10 2018"}
foo | c26_timestamptz | 0 | -0.8076923 | {"Sun Dec 31 22:00:00 2017 PST","Sun Dec 31 22:00:01 2017 PST","Sun Dec 31 22:00:02 2017 PST","Sun Dec 31 22:00:03 2017 PST"} | {0.025641026,0.025641026,0.025641026,0.025641026} | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:14:14 2018 PST","Mon Jan 01 09:29:29 2018 PST","Mon Jan 01 09:44:14 2018 PST","Mon Jan 01 09:59:29 2018 PST"}
foo_1_prt_1 | c26_timestamptz | 0 | -1 | | | {"Mon Jan 01 09:00:00 2018 PST","Mon Jan 01 09:14:14 2018 PST","Mon Jan 01 09:29:29 2018 PST","Mon Jan 01 09:44:14 2018 PST","Mon Jan 01 09:59:29 2018 PST"}
foo_1_prt_2 | c26_timestamptz | 0 | -0.7777778 | {"Sun Dec 31 22:00:00 2017 PST","Sun Dec 31 22:00:01 2017 PST","Sun Dec 31 22:00:02 2017 PST","Sun Dec 31 22:00:03 2017 PST"} | {0.11111111,0.11111111,0.11111111,0.11111111} | {"Mon Jan 01 09:01:01 2018 PST","Mon Jan 01 09:03:03 2018 PST","Mon Jan 01 09:05:05 2018 PST","Mon Jan 01 09:07:07 2018 PST","Mon Jan 01 09:10:10 2018 PST"}
foo | c27_uuid | 0 | -0.115384616 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.15384616,0.15384616,0.15384616,0.15384616} | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199}
foo_1_prt_1 | c27_uuid | 0 | 5 | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133} | {0.2,0.2,0.2,0.2} |
foo_1_prt_2 | c27_uuid | 0 | -0.5555556 | {11111111-1111-1111-1111-111111111166,11111111-1111-1111-1111-111111111177,11111111-1111-1111-1111-111111111188,11111111-1111-1111-1111-111111111199} | {0.16666667,0.16666667,0.16666667,0.16666667} | {11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111155}
foo | c28_tsquery | 0 | -0.82051283 | {"'foo8' & 'rat8'","'foo4' & 'rat4'","'foo9' & 'rat9'","'foo1' & 'rat1'"} | {0.025641026,0.025641026,0.025641026,0.025641026} | {"'foo5' & 'rat5'","'foo14' & 'rat14'","'foo64' & 'rat64'","'foo55' & 'rat55'","'foo63' & 'rat63'"}
foo_1_prt_1 | c28_tsquery | 0 | -1 | | | {"'foo8' & 'rat8'","'foo14' & 'rat14'","'foo11' & 'rat11'","'foo47' & 'rat47'","'foo16' & 'rat16'"}
foo_1_prt_2 | c28_tsquery | 0 | -0.7777778 | {"'foo61' & 'rat61'","'foo64' & 'rat64'","'foo62' & 'rat62'","'foo63' & 'rat63'"} | {0.11111111,0.11111111,0.11111111,0.11111111} | {"'foo8' & 'rat8'","'foo9' & 'rat9'","'foo5' & 'rat5'","'foo3' & 'rat3'","'foo10' & 'rat10'"}
foo | c29_varchararray | 0 | 6 | {"{a1,b1}","{a2,b2}","{a3,b3}"} | {0.17948718,0.17948718,0.16666667} | {"{a0,b0}","{a5,b5}"}
foo_1_prt_1 | c29_varchararray | 0 | 6 | {"{a0,b0}","{a1,b1}","{a2,b2}","{a3,b3}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{a4,b4}","{a5,b5}"}
foo_1_prt_2 | c29_varchararray | 0 | -0.33333334 | {"{a1,b1}","{a2,b2}","{a3,b3}","{a4,b4}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{a0,b0}","{a5,b5}"}
foo | c30_intarray | 0 | -0.75641024 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.025641026,0.025641026,0.025641026,0.025641026} | {"{1,1}","{15,3}","{30,0}","{45,3}","{60,0}"}
foo_1_prt_1 | c30_intarray | 0 | -1 | | | {"{1,1}","{15,3}","{30,0}","{45,3}","{60,0}"}
foo_1_prt_2 | c30_intarray | 0 | -0.5555556 | {"{1,1}","{2,2}","{3,3}","{4,4}"} | {0.11111111,0.11111111,0.11111111,0.11111111} | {"{5,5}","{6,0}","{7,1}","{8,2}","{10,4}"}
foo | c31_bigintarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c31_bigintarray | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c31_bigintarray | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_1 | c33_bitarray | 0 | 2 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo_1_prt_2 | c33_bitarray | 0 | -0.11111111 | {"{0,1}","{1,0}"} | {0.5,0.5} |
foo | c34_bitvaryingarray | 0 | 6 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}"} | {0.17948718,0.17948718,0.16666667} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo_1_prt_1 | c34_bitvaryingarray | 0 | 6 | {"{0000000000,0000000001}","{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{0000000100,0000000101}","{0000000101,0000000000}"}
foo_1_prt_2 | c34_bitvaryingarray | 0 | -0.33333334 | {"{0000000001,0000000010}","{0000000010,0000000011}","{0000000011,0000000100}","{0000000100,0000000101}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0000000000,0000000001}","{0000000101,0000000000}"}
foo | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_1 | c35_boolarray | 0 | 2 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo_1_prt_2 | c35_boolarray | 0 | -0.11111111 | {"{f,t}","{t,f}"} | {0.5,0.5} |
foo | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_1 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo_1_prt_2 | c36_chararray | 0 | 1 | {"{a,b}"} | {1} |
foo | c37_cidrarray | 0 | 6 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.17948718,0.17948718,0.16666667} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_1 | c37_cidrarray | 0 | 6 | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{192.168.100.4/32,192.168.101.4/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo_1_prt_2 | c37_cidrarray | 0 | -0.33333334 | {"{192.168.100.1/32,192.168.101.1/32}","{192.168.100.2/32,192.168.101.2/32}","{192.168.100.3/32,192.168.101.3/32}","{192.168.100.4/32,192.168.101.4/32}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{192.168.100.0/32,192.168.101.0/32}","{192.168.100.5/32,192.168.101.5/32}"}
foo | c38_datearray | 0 | 6 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}"} | {0.17948718,0.17948718,0.16666667} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_1 | c38_datearray | 0 | 6 | {"{01-01-2018,01-01-2018}","{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{01-05-2018,01-05-2018}","{01-06-2018,01-06-2018}"}
foo_1_prt_2 | c38_datearray | 0 | -0.33333334 | {"{01-02-2018,01-02-2018}","{01-03-2018,01-03-2018}","{01-04-2018,01-04-2018}","{01-05-2018,01-05-2018}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{01-01-2018,01-01-2018}","{01-06-2018,01-06-2018}"}
foo | c39_numericarray | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c39_numericarray | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c39_numericarray | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c40_float8array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c40_float8array | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c40_float8array | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c41_inetarray | 0 | 6 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}"} | {0.17948718,0.17948718,0.16666667} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_1 | c41_inetarray | 0 | 6 | {"{192.168.100.0,192.168.100.1}","{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{192.168.100.4,192.168.100.5}","{192.168.100.5,192.168.100.0}"}
foo_1_prt_2 | c41_inetarray | 0 | -0.33333334 | {"{192.168.100.1,192.168.100.2}","{192.168.100.2,192.168.100.3}","{192.168.100.3,192.168.100.4}","{192.168.100.4,192.168.100.5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{192.168.100.0,192.168.100.1}","{192.168.100.5,192.168.100.0}"}
foo | c42_int4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c42_int4array | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c42_int4array | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_1 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo_1_prt_2 | c43_intervalarray | 0 | 1 | {"{\"@ 1 hour\",\"@ 1 hour\"}"} | {1} |
foo | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.17948718,0.17948718,0.16666667} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_1 | c44_macaddrarray | 0 | 6 | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{08:00:2b:01:02:04,08:00:2b:01:02:04}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo_1_prt_2 | c44_macaddrarray | 0 | -0.33333334 | {"{08:00:2b:01:02:01,08:00:2b:01:02:01}","{08:00:2b:01:02:02,08:00:2b:01:02:02}","{08:00:2b:01:02:03,08:00:2b:01:02:03}","{08:00:2b:01:02:04,08:00:2b:01:02:04}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{08:00:2b:01:02:00,08:00:2b:01:02:00}","{08:00:2b:01:02:05,08:00:2b:01:02:05}"}
foo | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_1 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo_1_prt_2 | c45_moneyarray | 0 | 1 | {"{$123.40,$234.50}"} | {1} |
foo | c46_float4array | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c46_float4array | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c46_float4array | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c47_smallintarrayn | 0 | 6 | {"{1,2}","{2,3}","{3,4}"} | {0.17948718,0.17948718,0.16666667} | {"{0,1}","{5,0}"}
foo_1_prt_1 | c47_smallintarrayn | 0 | 6 | {"{0,1}","{1,2}","{2,3}","{3,4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{4,5}","{5,0}"}
foo_1_prt_2 | c47_smallintarrayn | 0 | -0.33333334 | {"{1,2}","{2,3}","{3,4}","{4,5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{0,1}","{5,0}"}
foo | c48_textarray | 0 | 6 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}"} | {0.17948718,0.17948718,0.16666667} | {"{abcd0,def1}","{abcd5,def0}"}
foo_1_prt_1 | c48_textarray | 0 | 6 | {"{abcd0,def1}","{abcd1,def2}","{abcd2,def3}","{abcd3,def4}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{abcd4,def5}","{abcd5,def0}"}
foo_1_prt_2 | c48_textarray | 0 | -0.33333334 | {"{abcd1,def2}","{abcd2,def3}","{abcd3,def4}","{abcd4,def5}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{abcd0,def1}","{abcd5,def0}"}
foo | c49_timearray | 0 | 6 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}"} | {0.17948718,0.17948718,0.16666667} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_1 | c49_timearray | 0 | 6 | {"{00:00:00,01:00:00}","{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{04:00:00,05:00:00}","{05:00:00,00:00:00}"}
foo_1_prt_2 | c49_timearray | 0 | -0.33333334 | {"{01:00:00,02:00:00}","{02:00:00,03:00:00}","{03:00:00,04:00:00}","{04:00:00,05:00:00}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{00:00:00,01:00:00}","{05:00:00,00:00:00}"}
foo | c50_timetzarray | 0 | 6 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.17948718,0.17948718,0.16666667} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_1 | c50_timetzarray | 0 | 6 | {"{00:00:59-08,01:00:59-05}","{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{04:00:59-08,05:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo_1_prt_2 | c50_timetzarray | 0 | -0.33333334 | {"{01:00:59-08,02:00:59-05}","{02:00:59-08,03:00:59-05}","{03:00:59-08,04:00:59-05}","{04:00:59-08,05:00:59-05}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{00:00:59-08,01:00:59-05}","{05:00:59-08,00:00:59-05}"}
foo | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.17948718,0.17948718,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_1 | c51_timestamparray | 0 | 6 | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo_1_prt_2 | c51_timestamparray | 0 | -0.33333334 | {"{\"Mon Jan 01 01:59:00 2018\",\"Mon Jan 01 02:59:00 2018\"}","{\"Mon Jan 01 02:59:00 2018\",\"Mon Jan 01 03:59:00 2018\"}","{\"Mon Jan 01 03:59:00 2018\",\"Mon Jan 01 04:59:00 2018\"}","{\"Mon Jan 01 04:59:00 2018\",\"Mon Jan 01 05:59:00 2018\"}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018\",\"Mon Jan 01 01:59:00 2018\"}","{\"Mon Jan 01 05:59:00 2018\",\"Mon Jan 01 00:59:00 2018\"}"}
foo | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.17948718,0.17948718,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_1 | c52_timestamptzarray | 0 | 6 | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo_1_prt_2 | c52_timestamptzarray | 0 | -0.33333334 | {"{\"Mon Jan 01 01:59:00 2018 PST\",\"Sun Dec 31 23:59:00 2017 PST\"}","{\"Mon Jan 01 02:59:00 2018 PST\",\"Mon Jan 01 00:59:00 2018 PST\"}","{\"Mon Jan 01 03:59:00 2018 PST\",\"Mon Jan 01 01:59:00 2018 PST\"}","{\"Mon Jan 01 04:59:00 2018 PST\",\"Mon Jan 01 02:59:00 2018 PST\"}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{\"Mon Jan 01 00:59:00 2018 PST\",\"Sun Dec 31 22:59:00 2017 PST\"}","{\"Mon Jan 01 05:59:00 2018 PST\",\"Sun Dec 31 21:59:00 2017 PST\"}"}
foo | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.17948718,0.17948718,0.16666667} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_1 | c53_uuidzarray | 0 | 6 | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo_1_prt_2 | c53_uuidzarray | 0 | -0.33333334 | {"{11111111-1111-1111-1111-111111111111,11111111-1111-1111-1111-111111111122}","{11111111-1111-1111-1111-111111111122,11111111-1111-1111-1111-111111111133}","{11111111-1111-1111-1111-111111111133,11111111-1111-1111-1111-111111111144}","{11111111-1111-1111-1111-111111111144,11111111-1111-1111-1111-111111111155}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{11111111-1111-1111-1111-111111111100,11111111-1111-1111-1111-111111111111}","{11111111-1111-1111-1111-111111111155,11111111-1111-1111-1111-111111111100}"}
foo | c54_tsqueryarray | 0 | 6 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"} | {0.17948718,0.17948718,0.16666667,0.16666667} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo_1_prt_1 | c54_tsqueryarray | 0 | 6 | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}","{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}"}
foo_1_prt_2 | c54_tsqueryarray | 0 | -0.33333334 | {"{\"'foo1' & 'rat'\",\"'rat1' & 'foo'\"}","{\"'foo2' & 'rat'\",\"'rat2' & 'foo'\"}","{\"'foo4' & 'rat'\",\"'rat4' & 'foo'\"}","{\"'foo3' & 'rat'\",\"'rat3' & 'foo'\"}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{\"'foo0' & 'rat'\",\"'rat0' & 'foo'\"}","{\"'foo5' & 'rat'\",\"'rat5' & 'foo'\"}"}
foo | c55_jsonarray | 0 | 0 | | |
foo_1_prt_1 | c55_jsonarray | 0 | 0 | | |
foo_1_prt_2 | c55_jsonarray | 0 | 0 | | |
foo | c57_pointarray | 0 | 0 | | |
foo_1_prt_1 | c57_pointarray | 0 | 0 | | |
foo_1_prt_2 | c57_pointarray | 0 | 0 | | |
foo | c58_linesegarray | 0 | 0 | | |
foo_1_prt_1 | c58_linesegarray | 0 | 0 | | |
foo_1_prt_2 | c58_linesegarray | 0 | 0 | | |
foo | c59_patharray | 0 | 0 | | |
foo_1_prt_1 | c59_patharray | 0 | 0 | | |
foo_1_prt_2 | c59_patharray | 0 | 0 | | |
foo | c60_boxarray | 0 | 0 | | |
foo_1_prt_1 | c60_boxarray | 0 | 0 | | |
foo_1_prt_2 | c60_boxarray | 0 | 0 | | |
foo | c61_polygonarray | 0 | 0 | | |
foo_1_prt_1 | c61_polygonarray | 0 | 0 | | |
foo_1_prt_2 | c61_polygonarray | 0 | 0 | | |
foo | c62_circlearray | 0 | 0 | | |
foo_1_prt_1 | c62_circlearray | 0 | 0 | | |
foo_1_prt_2 | c62_circlearray | 0 | 0 | | |
foo | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.17948718,0.17948718,0.16666667} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_1 | c63_inc_analyze_composite_array | 0 | 6 | {"{\"(0,1)\",\"(0,1)\"}","{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}"} | {0.16666667,0.16666667,0.16666667,0.16666667} | {"{\"(4,5)\",\"(4,5)\"}","{\"(5,0)\",\"(5,0)\"}"}
foo_1_prt_2 | c63_inc_analyze_composite_array | 0 | -0.33333334 | {"{\"(1,2)\",\"(1,2)\"}","{\"(2,3)\",\"(2,3)\"}","{\"(3,4)\",\"(3,4)\"}","{\"(4,5)\",\"(4,5)\"}"} | {0.22222222,0.22222222,0.16666667,0.16666667} | {"{\"(0,1)\",\"(0,1)\"}","{\"(5,0)\",\"(5,0)\"}"}
(180 rows)
-- Test merging leaf stats where HLL is empty
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo select i, i%6, repeat('aaaa', 100000) FROM generate_series(1, 100)i;
ANALYZE foo;
SELECT * FROM pg_stats WHERE tablename like 'foo%' and attname = 'c' ORDER BY attname,tablename;
schemaname | tablename | attname | inherited | null_frac | avg_width | n_distinct | most_common_vals | most_common_freqs | histogram_bounds | correlation | most_common_elems | most_common_elem_freqs | elem_count_histogram
------------+-------------+---------+-----------+-----------+-----------+------------+------------------+-------------------+------------------+-------------+-------------------+------------------------+----------------------
public | foo | c | t | 0 | 4591 | 0 | | | | | | |
public | foo_1_prt_1 | c | f | 0 | 4591 | 0 | | | | | | |
public | foo_1_prt_2 | c | f | 0 | 4591 | 0 | | | | | | |
(3 rows)
-- Test ANALYZE full scan HLL
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i, i%3, 'text_'||i%100 FROM generate_series(1,1000)i;
INSERT INTO foo SELECT i, i%3+3, 'text_'||i%200 FROM generate_series(1,1000)i;
SET default_statistics_target to 3;
ANALYZE FULLSCAN foo;
SELECT tablename, n_distinct FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | n_distinct
-------------+------------
foo | -0.5015
foo_1_prt_1 | -1
foo_1_prt_2 | -1
foo | 6
foo_1_prt_1 | 3
foo_1_prt_2 | 3
foo | 199
foo_1_prt_1 | 100
foo_1_prt_2 | -0.199
(9 rows)
-- Test ANALYZE auto merge behavior
-- Do not merge stats from only one partition while other partitions have not been analyzed yet
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i, i%6, i%6 FROM generate_series(1,100)i;
ANALYZE foo_1_prt_1;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+-------------------+------------------
foo_1_prt_1 | a | 0 | -1 | | | {1,32,66,98}
foo_1_prt_1 | b | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_1 | c | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
(3 rows)
-- Merge stats from both partitions
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i, i%6, i%6 FROM generate_series(1,100)i;
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+-------------------+------------------
foo | a | 0 | -1 | | | {1,34,66,100}
foo_1_prt_1 | a | 0 | -1 | | | {1,32,66,98}
foo_1_prt_2 | a | 0 | -1 | | | {3,34,65,100}
foo | b | 0 | 6 | {1,2,3} | {0.17,0.17,0.17} | {0,4,5}
foo_1_prt_1 | b | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | b | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo | c | 0 | 6 | {1,2,3} | {0.17,0.17,0.17} | {0,4,5}
foo_1_prt_1 | c | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
foo_1_prt_2 | c | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
(9 rows)
-- No stats after merging
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-----------+---------+-----------+------------+------------------+-------------------+------------------
(0 rows)
-- Merge stats from only one partition
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i, i%6, i%6 FROM generate_series(1,100)i;
SET allow_system_table_mods=true;
UPDATE pg_attribute SET attstattarget=0 WHERE attrelid = 'foo_1_prt_1'::regclass and ATTNAME in ('a','b','c');
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+-------------------+------------------
foo_1_prt_2 | a | 0 | -1 | | | {3,34,65,100}
foo_1_prt_2 | b | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
foo_1_prt_2 | c | 0 | 3 | {3,4,5} | {0.34,0.34,0.32} |
(3 rows)
-- Merge stats from only one partition one column
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i, i%6, i%6 FROM generate_series(1,100)i;
ANALYZE foo_1_prt_1(c);
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+-------------------+------------------
foo_1_prt_1 | c | 0 | 3 | {1,2,0} | {0.34,0.34,0.32} |
(1 row)
-- Test merging of leaf stats when one partition has
-- FULL SCAN HLL and the other has HLL from sample
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO FOO SELECT i,i%6 FROM generate_series(1,1000)i;
ANALYZE foo_1_prt_1;
ANALYZE FULLSCAN foo_1_prt_2;
ERROR: ANALYZE cannot merge since not all non-empty leaf partitions have consistent hyperloglog statistics for merge
HINT: Re-run ANALYZE or ANALYZE FULLSCAN
-- Test merging of stats for a newly added partition
-- Do not collect samples while merging stats
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO FOO SELECT i,i%6 FROM generate_series(1,1000)i;
SET default_statistics_target = 4;
ANALYZE foo;
ALTER TABLE foo ADD partition new_part START (6) INCLUSIVE END (9) EXCLUSIVE;
INSERT INTO foo SELECT i, i%3+6 FROM generate_series(1,500)i;
ANALYZE foo_1_prt_new_part;
SET log_statement='none';
SET client_min_messages = 'log';
-- Insert a new column that is not analyzed in the leaf partitions.
-- Analyzing root partition will use merging statistics for the first 2 columns,
-- will create a sample for the root to analyze the newly added columns since
-- the leaf partitions does not have any stats for it, yet
ALTER TABLE foo ADD COLUMN c int;
INSERT INTO foo SELECT i, i%9, i%100 FROM generate_series(1,500)i;
-- start_matchsubs
-- m/gp_acquire_sample_rows([^,]+, [^,]+, .+)/
-- s/gp_acquire_sample_rows([^,]+, [^,]+, .+)/gp_acquire_sample_rows()/
-- end_matchsubs
ANALYZE VERBOSE rootpartition foo;
INFO: analyzing "public.foo" inheritance tree
INFO: column c of partition foo_1_prt_1 is not analyzed, so ANALYZE will collect sample for stats calculation
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(17861, 400, 't')
-- Testing auto merging root statistics for all columns
-- where column attnums are differents due to dropped columns
-- and split partitions.
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text, d int)
DISTRIBUTED BY (d)
PARTITION BY RANGE (a)
(START (0) END (8) EVERY (4),
DEFAULT PARTITION def_part);
INSERT INTO foo SELECT i%13, i, 'something'||i::text, i%121 FROM generate_series(1,1000)i;
ALTER TABLE foo DROP COLUMN b;
ALTER TABLE foo SPLIT DEFAULT PARTITION START (8) END (12) INTO (PARTITION new_part, default PARTITION);
set client_min_messages to 'log';
ANALYZE foo_1_prt_2;
ANALYZE foo_1_prt_3;
ANALYZE foo_1_prt_new_part;
ANALYZE foo_1_prt_def_part;
reset client_min_messages;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
--------------------+---------+-----------+-------------+------------------+-------------------------------------------------------+---------------------------------------------------------------------
foo | a | 0 | 13 | {4,5,6,7} | {0.077,0.077,0.077,0.077} | {0,2,8,10,12}
foo_1_prt_2 | a | 0 | 4 | {1,2,3,0} | {0.25081432,0.25081432,0.25081432,0.247557} |
foo_1_prt_3 | a | 0 | 4 | {4,5,6,7} | {0.25,0.25,0.25,0.25} |
foo_1_prt_def_part | a | 0 | 1 | {12} | {1} |
foo_1_prt_new_part | a | 0 | 4 | {8,9,10,11} | {0.25,0.25,0.25,0.25} |
foo | c | 0 | -1 | | | {something1,something33,something554,something776,something999}
foo_1_prt_2 | c | 0 | -1 | | | {something1,something313,something54,something769,something991}
foo_1_prt_3 | c | 0 | -1 | | | {something108,something33,something553,something773,something995}
foo_1_prt_def_part | c | 0 | -1 | | | {something1000,something311,something532,something766,something987}
foo_1_prt_new_part | c | 0 | -1 | | | {something10,something323,something554,something776,something999}
foo | d | 0 | -0.121 | {2,3} | {0.009,0.009} | {0,31,62,91,120}
foo_1_prt_2 | d | 0 | -0.39413682 | {1,2,3,7} | {0.009771987,0.009771987,0.009771987,0.009771987} | {0,31,62,91,120}
foo_1_prt_3 | d | 0 | -0.39285713 | {0,1,2,3} | {0.0097402595,0.0097402595,0.0097402595,0.0097402595} | {4,30,59,90,120}
foo_1_prt_def_part | d | 0 | -1 | | | {0,27,57,88,118}
foo_1_prt_new_part | d | 0 | -0.39285713 | {2,3,4,5} | {0.0097402595,0.0097402595,0.0097402595,0.0097402595} | {0,31,60,89,120}
(15 rows)
-- Testing auto merging root statistics for a column whose attnum
-- is aligned and the same in every partition due to dropped columns
-- and split partitions.
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text, d int)
DISTRIBUTED BY (d)
PARTITION BY RANGE (a)
(START (0) END (8) EVERY (4),
DEFAULT PARTITION def_part);
INSERT INTO foo SELECT i%13, i, 'something'||i::text, i%121 FROM generate_series(1,1000)i;
ALTER TABLE foo DROP COLUMN b;
ALTER TABLE foo SPLIT DEFAULT PARTITION START (8) END (12) INTO (PARTITION new_part, default PARTITION);
set client_min_messages to 'log';
ANALYZE foo_1_prt_2(a);
ANALYZE foo_1_prt_3(a);
ANALYZE foo_1_prt_new_part(a);
ANALYZE foo_1_prt_def_part(a);
reset client_min_messages;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
--------------------+---------+-----------+------------+------------------+---------------------------------------------+------------------
foo | a | 0 | 13 | {4,5,6,7} | {0.077,0.077,0.077,0.077} | {0,2,8,10,12}
foo_1_prt_2 | a | 0 | 4 | {1,2,3,0} | {0.25081432,0.25081432,0.25081432,0.247557} |
foo_1_prt_3 | a | 0 | 4 | {4,5,6,7} | {0.25,0.25,0.25,0.25} |
foo_1_prt_def_part | a | 0 | 1 | {12} | {1} |
foo_1_prt_new_part | a | 0 | 4 | {8,9,10,11} | {0.25,0.25,0.25,0.25} |
(5 rows)
-- Testing auto merging root statistics for a column whose attnum
-- is not aligned and different in partitions due to dropped columns
-- and split partitions.
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text, d int)
DISTRIBUTED BY (d)
PARTITION BY RANGE (a)
(START (0) END (8) EVERY (4),
DEFAULT PARTITION def_part);
INSERT INTO foo SELECT i%13, i, 'something'||i::text, i%121 FROM generate_series(1,1000)i;
ALTER TABLE foo DROP COLUMN b;
ALTER TABLE foo SPLIT DEFAULT PARTITION START (8) END (12) INTO (PARTITION new_part, default PARTITION);
set client_min_messages to 'log';
ANALYZE foo_1_prt_2(d);
ANALYZE foo_1_prt_3(d);
ANALYZE foo_1_prt_new_part(d);
ANALYZE foo_1_prt_def_part(d);
reset client_min_messages;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
--------------------+---------+-----------+-------------+------------------+-------------------------------------------------------+------------------
foo | d | 0 | -0.121 | {2,3} | {0.009,0.009} | {0,31,62,91,120}
foo_1_prt_2 | d | 0 | -0.39413682 | {1,2,3,7} | {0.009771987,0.009771987,0.009771987,0.009771987} | {0,31,62,91,120}
foo_1_prt_3 | d | 0 | -0.39285713 | {0,1,2,3} | {0.0097402595,0.0097402595,0.0097402595,0.0097402595} | {4,30,59,90,120}
foo_1_prt_def_part | d | 0 | -1 | | | {0,27,57,88,118}
foo_1_prt_new_part | d | 0 | -0.39285713 | {2,3,4,5} | {0.0097402595,0.0097402595,0.0097402595,0.0097402595} | {0,31,60,89,120}
(5 rows)
-- Testing ANALYZE ROOTPARTITION and when optimizer_analyze_root_partition is off
-- for incremental analyze.
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text)
PARTITION BY RANGE (b)
(START (0) END (8) EVERY (4));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i%130, i%8, 'something'||i::text FROM generate_series(1,1000)i;
set optimizer_analyze_root_partition=off;
set client_min_messages to 'log';
-- ANALYZE ROOTPARTITION will sample the table and compute statistics since there
-- is not stats to be merged in the leaf partitions
ANALYZE ROOTPARTITION foo;
reset client_min_messages;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-----------+---------+-----------+------------+------------------+---------------------------+------------------------------------------------------------------
foo | a | 0 | -0.13 | {1,2,3,4} | {0.008,0.008,0.008,0.008} | {0,34,64,95,129}
foo | b | 0 | 8 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {4,5,6,7}
foo | c | 0 | -1 | | | {something1,something322,something548,something773,something999}
(3 rows)
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
set client_min_messages to 'log';
-- ANALYZE ROOT PARTITION will piggyback on the stats collected from the leaf and merge them
ANALYZE ROOTPARTITION foo;
reset client_min_messages;
reset optimizer_analyze_root_partition;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+---------------------------+--------------------------------------------------------------------
foo | a | 0 | -0.131 | {1,2,3} | {0.008,0.008,0.008} | {0,34,64,95,129}
foo_1_prt_1 | a | 0 | -0.26 | {1,2,3,4} | {0.008,0.008,0.008,0.008} | {0,34,64,95,129}
foo_1_prt_2 | a | 0 | -0.26 | {0,1,2,3} | {0.008,0.008,0.008,0.008} | {4,34,64,94,129}
foo | b | 0 | 8 | {0,1,2,3} | {0.125,0.125,0.125,0.125} | {4,5,6,7}
foo_1_prt_1 | b | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | b | 0 | 4 | {4,5,6,7} | {0.25,0.25,0.25,0.25} |
foo | c | 0 | -1 | | | {something1,something324,something548,something776,something999}
foo_1_prt_1 | c | 0 | -1 | | | {something1,something321,something547,something776,something995}
foo_1_prt_2 | c | 0 | -1 | | | {something100,something324,something548,something772,something999}
(9 rows)
-- Testing that auto merge will be disabled when optimizer_analyze_root_partition
-- is off for incremental analyze.
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c text)
PARTITION BY RANGE (b)
(START (0) END (8) EVERY (4));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo SELECT i%130, i%8, 'something'||i::text FROM generate_series(1,1000)i;
set optimizer_analyze_root_partition=off;
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+---------------------------+--------------------------------------------------------------------
foo_1_prt_1 | a | 0 | -0.26 | {1,2,3,4} | {0.008,0.008,0.008,0.008} | {0,34,64,95,129}
foo_1_prt_2 | a | 0 | -0.26 | {0,1,2,3} | {0.008,0.008,0.008,0.008} | {4,34,64,94,129}
foo_1_prt_1 | b | 0 | 4 | {0,1,2,3} | {0.25,0.25,0.25,0.25} |
foo_1_prt_2 | b | 0 | 4 | {4,5,6,7} | {0.25,0.25,0.25,0.25} |
foo_1_prt_1 | c | 0 | -1 | | | {something1,something321,something547,something776,something995}
foo_1_prt_2 | c | 0 | -1 | | | {something100,something324,something548,something772,something999}
(6 rows)
reset optimizer_analyze_root_partition;
-- Test incremental analyze on a partitioned table with different storage type and compression algorithm
DROP TABLE IF EXISTS incr_analyze_test;
NOTICE: table "incr_analyze_test" does not exist, skipping
CREATE TABLE incr_analyze_test (
a integer,
b character varying,
c date
)
WITH (appendonly=true, orientation=row) DISTRIBUTED BY (a) PARTITION BY RANGE(c)
(
START ('2018-01-01'::date) END ('2018-01-02'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_1', appendonly=true, compresslevel=3, orientation=column, compresstype=ZLIB ),
START ('2018-01-02'::date) END ('2018-01-03'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_2', appendonly=true, compresslevel=1, orientation=column, compresstype=RLE_TYPE ),
START ('2018-01-03'::date) END ('2018-01-04'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_3', appendonly=true, compresslevel=1, orientation=column, compresstype=ZLIB ),
START ('2018-01-04'::date) END ('2018-01-05'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_4', appendonly=true, compresslevel=1, orientation=row, compresstype=ZLIB ),
START ('2018-01-05'::date) END ('2018-01-06'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_5', appendonly=true, compresslevel=1, orientation=row, compresstype=ZLIB ),
START ('2018-01-06'::date) END ('2018-01-07'::date) EVERY ('1 day'::interval) WITH (tablename='incr_analyze_test_1_prt_6', appendonly=false)
);
INSERT INTO incr_analyze_test VALUES (1, 'a', '2018-01-01');
ANALYZE incr_analyze_test;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'incr_analyze_test%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
---------------------------+---------+-----------+------------+------------------+-------------------+------------------
incr_analyze_test | a | 0 | -1 | | |
incr_analyze_test_1_prt_1 | a | 0 | -1 | | |
incr_analyze_test | b | 0 | -1 | | |
incr_analyze_test_1_prt_1 | b | 0 | -1 | | |
incr_analyze_test | c | 0 | -1 | | |
incr_analyze_test_1_prt_1 | c | 0 | -1 | | |
(6 rows)
INSERT INTO incr_analyze_test SELECT s, md5(s::varchar), '2018-01-02' FROM generate_series(1, 1000) AS s;
ANALYZE incr_analyze_test_1_prt_2;
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'incr_analyze_test%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
---------------------------+---------+-----------+------------+------------------+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------
incr_analyze_test | a | 0 | -1 | | | {1,500,750,1000}
incr_analyze_test_1_prt_1 | a | 0 | -1 | | |
incr_analyze_test_1_prt_2 | a | 0 | -1 | | | {1,250,500,750,1000}
incr_analyze_test | b | 0 | -1 | | | {00411460f7c92d2124a67ea0f4cb5f85,819f46e52c25763a55cc642422644317,c20ad4d76fe97759aa27a0c99bff6710,ffeabd223de0d4eacb9a3e6e53e5448d}
incr_analyze_test_1_prt_1 | b | 0 | -1 | | |
incr_analyze_test_1_prt_2 | b | 0 | -1 | | | {00411460f7c92d2124a67ea0f4cb5f85,3a0772443a0739141292a5429b952fe6,819f46e52c25763a55cc642422644317,c20ad4d76fe97759aa27a0c99bff6710,ffeabd223de0d4eacb9a3e6e53e5448d}
incr_analyze_test | c | 0 | 2 | {01-02-2018} | {0.999001} |
incr_analyze_test_1_prt_1 | c | 0 | -1 | | |
incr_analyze_test_1_prt_2 | c | 0 | 1 | {01-02-2018} | {1} |
(9 rows)
SELECT relname, relpages, reltuples FROM pg_class WHERE relname LIKE 'incr_analyze_test%' ORDER BY relname;
relname | relpages | reltuples
---------------------------+----------+-----------
incr_analyze_test | -1 | 1001
incr_analyze_test_1_prt_1 | 1 | 1
incr_analyze_test_1_prt_2 | 2 | 1000
incr_analyze_test_1_prt_3 | 1 | 0
incr_analyze_test_1_prt_4 | 1 | 0
incr_analyze_test_1_prt_5 | 1 | 0
incr_analyze_test_1_prt_6 | 1 | 0
(7 rows)
-- Test merging of stats if an empty partition contains relpages > 0
-- Do not collect samples while merging stats
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int) PARTITION BY RANGE (b) (START (0) END (6) EVERY (3));
INSERT INTO foo SELECT i,i%3 FROM generate_series(1,10)i;
ANALYZE foo_1_prt_1;
ANALYZE foo_1_prt_2;
SET allow_system_table_mods = on;
UPDATE pg_class set relpages=3 WHERE relname='foo_1_prt_2';
RESET allow_system_table_mods;
analyze verbose rootpartition foo;
INFO: analyzing "public.foo" inheritance tree
-- ensure relpages is correctly set after analyzing
analyze foo_1_prt_2;
select reltuples, relpages from pg_class where relname ='foo_1_prt_2';
reltuples | relpages
-----------+----------
0 | 1
(1 row)
-- Test application of column-wise statistics setting to the number of MCVs and histogram bounds on partitioned table
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int) PARTITION BY RANGE (a) (START (0) END (10) EVERY (5));
-- fill foo with even numbers twice as large than odd ones to avoid fully even distribution of 'a' attribute and hence empty MCV/MCF
INSERT INTO foo SELECT i%10 FROM generate_series(0, 100) i;
INSERT INTO foo SELECT i%10 FROM generate_series(0, 100) i WHERE i%2 = 0;
-- default_statistics_target is 4
ALTER TABLE foo ALTER COLUMN a SET STATISTICS 5;
ANALYZE foo;
SELECT array_length(most_common_vals, 1), array_length(most_common_freqs, 1), array_length(histogram_bounds, 1) FROM pg_stats WHERE tablename = 'foo' AND attname = 'a';
array_length | array_length | array_length
--------------+--------------+--------------
5 | 5 | 5
(1 row)
-- Make sure a simple heap table does not store HLL values
CREATE TABLE simple_table_no_hll (a int);
INSERT INTO simple_table_no_hll SELECT generate_series(1,10);
ANALYZE simple_table_no_hll;
SELECT staattnum, stakind1, stakind2, stakind3, stakind4, stakind5,
stavalues1, stavalues2, stavalues3, stavalues4, stavalues5
FROM pg_statistic WHERE starelid = 'simple_table_no_hll'::regclass;
staattnum | stakind1 | stakind2 | stakind3 | stakind4 | stakind5 | stavalues1 | stavalues2 | stavalues3 | stavalues4 | stavalues5
-----------+----------+----------+----------+----------+----------+--------------+------------+------------+------------+------------
1 | 2 | 3 | 0 | 0 | 0 | {1,3,5,7,10} | | | |
(1 row)
-- Make sure analyze rootpartition option works in an option list
set optimizer_analyze_root_partition to off;
DROP TABLE IF EXISTS foo;
CREATE TABLE foo(a int) PARTITION BY RANGE(a) (start (0) INCLUSIVE END (20) EVERY (10));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INSERT INTO foo values (5),(15);
ANALYZE (verbose, rootpartition off) foo;
INFO: analyzing "public.foo_1_prt_2"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229792, 400, 'f');
INFO: analyzing "public.foo_1_prt_1"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229789, 400, 'f');
-- root should not have stats
SELECT count(*) from pg_statistic where starelid='foo'::regclass;
count
-------
0
(1 row)
-- root should have stats
ANALYZE (verbose, rootpartition on) foo;
INFO: analyzing "public.foo" inheritance tree
SELECT count(*) from pg_statistic where starelid='foo'::regclass;
count
-------
1
(1 row)
-- Make sure analyze hll fullscan option works in an option list
ANALYZE (verbose, fullscan on) foo;
INFO: analyzing "public.foo_1_prt_2"
INFO: Executing SQL: select pg_catalog.gp_hyperloglog_accum(a) from public.foo_1_prt_2 as Ta
INFO: HLL FULL SCAN
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229792, 400, 'f');
INFO: analyzing "public.foo_1_prt_1"
INFO: Executing SQL: select pg_catalog.gp_hyperloglog_accum(a) from public.foo_1_prt_1 as Ta
INFO: HLL FULL SCAN
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229789, 400, 'f');
ANALYZE (verbose, fullscan off) foo;
INFO: analyzing "public.foo_1_prt_2"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229792, 400, 'f');
INFO: analyzing "public.foo_1_prt_1"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(229789, 400, 'f');
reset optimizer_analyze_root_partition;
-- Test merging of stats after the last partition is analyzed. Merging should
-- be done for root without taking a sample from root if one of the column
-- statistics collection is turned off
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a int, b int, c gp_hyperloglog_estimator) PARTITION BY RANGE (b) (START (1) END (3) EVERY (1));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
SET gp_autostats_mode=none;
ALTER TABLE foo ALTER COLUMN c SET STATISTICS 0;
INSERT INTO foo SELECT i,i%2+1, NULL FROM generate_series(1,100)i;
ANALYZE VERBOSE foo_1_prt_1;
INFO: analyzing "public.foo_1_prt_1"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(24965, 400, 'f');
ANALYZE VERBOSE foo_1_prt_2;
INFO: analyzing "public.foo_1_prt_2"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(24971, 400, 'f');
INFO: analyzing "public.foo" inheritance tree
SELECT tablename, attname, null_frac, n_distinct, most_common_vals, most_common_freqs, histogram_bounds FROM pg_stats WHERE tablename like 'foo%' ORDER BY attname,tablename;
tablename | attname | null_frac | n_distinct | most_common_vals | most_common_freqs | histogram_bounds
-------------+---------+-----------+------------+------------------+-------------------+------------------
foo | a | 0 | -1 | | | {1,26,50,74,100}
foo_1_prt_1 | a | 0 | -1 | | | {2,26,50,74,100}
foo_1_prt_2 | a | 0 | -1 | | | {1,25,49,73,99}
foo | b | 0 | 2 | {1,2} | {0.5,0.5} |
foo_1_prt_1 | b | 0 | 1 | {1} | {1} |
foo_1_prt_2 | b | 0 | 1 | {2} | {1} |
(6 rows)
RESET gp_autostats_mode;
-- analyze in transaction should merge leaves instead of resampling
drop table if exists foo;
create table foo (a int, b date) distributed by (a) partition by range(b) (partition "20210101" start ('20210101'::date) end ('20210201'::date), partition "20210201" start ('20210201'::date) end ('20210301'::date), partition "20210301" start ('20210301'::date) end ('20210401'::date));
insert into foo select a, '20210101'::date+a from (select generate_series(1,80) a) t1;
analyze verbose foo;
INFO: analyzing "public.foo_1_prt_20210301"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(65906, 400, 'f');
INFO: analyzing "public.foo_1_prt_20210201"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(65903, 400, 'f');
INFO: analyzing "public.foo_1_prt_20210101"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(65900, 400, 'f');
INFO: analyzing "public.foo" inheritance tree
-- we should see "analyzing "public.foo" inheritance tree" in the output below
begin;
truncate foo_1_prt_20210201;
insert into foo select a, '20210101'::date+a from (select generate_series(31,40) a) t1;
analyze verbose foo_1_prt_20210201;
INFO: analyzing "public.foo_1_prt_20210201"
INFO: Executing SQL: select pg_catalog.gp_acquire_sample_rows(65903, 400, 'f');
INFO: analyzing "public.foo" inheritance tree
rollback;