@@ -40,92 +40,94 @@ select prop,
4040 bogus | | |
4141(19 rows)
4242
43- select prop,
44- pg_indexam_has_property(a.oid, prop) as "AM",
45- pg_index_has_property('gcircleind'::regclass, prop) as "Index",
46- pg_index_column_has_property('gcircleind'::regclass, 1, prop) as "Column"
47- from pg_am a,
48- unnest(array['asc', 'desc', 'nulls_first', 'nulls_last',
49- 'orderable', 'distance_orderable', 'returnable',
50- 'search_array', 'search_nulls',
51- 'clusterable', 'index_scan', 'bitmap_scan',
52- 'backward_scan',
53- 'can_order', 'can_unique', 'can_multi_col',
54- 'can_exclude', 'can_include',
55- 'bogus']::text[])
56- with ordinality as u(prop,ord)
57- where a.amname = 'gist'
58- order by ord;
59- prop | AM | Index | Column
60- --------------------+----+-------+--------
61- asc | | | f
62- desc | | | f
63- nulls_first | | | f
64- nulls_last | | | f
65- orderable | | | f
66- distance_orderable | | | t
67- returnable | | | f
68- search_array | | | f
69- search_nulls | | | t
70- clusterable | | t |
71- index_scan | | t |
72- bitmap_scan | | t |
73- backward_scan | | f |
74- can_order | f | |
75- can_unique | f | |
76- can_multi_col | t | |
77- can_exclude | t | |
78- can_include | t | |
79- bogus | | |
80- (19 rows)
81-
43+ -- select prop,
44+ -- pg_indexam_has_property(a.oid, prop) as "AM",
45+ -- pg_index_has_property('gcircleind'::regclass, prop) as "Index",
46+ -- pg_index_column_has_property('gcircleind'::regclass, 1, prop) as "Column"
47+ -- from pg_am a,
48+ -- unnest(array['asc', 'desc', 'nulls_first', 'nulls_last',
49+ -- 'orderable', 'distance_orderable', 'returnable',
50+ -- 'search_array', 'search_nulls',
51+ -- 'clusterable', 'index_scan', 'bitmap_scan',
52+ -- 'backward_scan',
53+ -- 'can_order', 'can_unique', 'can_multi_col',
54+ -- 'can_exclude', 'can_include',
55+ -- 'bogus']::text[])
56+ -- with ordinality as u(prop,ord)
57+ -- where a.amname = 'gist'
58+ -- order by ord;
59+ -- pax not support brin index yet
60+ -- select prop,
61+ -- pg_index_column_has_property('onek_hundred'::regclass, 1, prop) as btree,
62+ -- pg_index_column_has_property('hash_i4_index'::regclass, 1, prop) as hash,
63+ -- pg_index_column_has_property('gcircleind'::regclass, 1, prop) as gist,
64+ -- pg_index_column_has_property('sp_radix_ind'::regclass, 1, prop) as spgist_radix,
65+ -- pg_index_column_has_property('sp_quad_ind'::regclass, 1, prop) as spgist_quad,
66+ -- pg_index_column_has_property('botharrayidx'::regclass, 1, prop) as gin,
67+ -- pg_index_column_has_property('brinidx'::regclass, 1, prop) as brin
68+ -- from unnest(array['asc', 'desc', 'nulls_first', 'nulls_last',
69+ -- 'orderable', 'distance_orderable', 'returnable',
70+ -- 'search_array', 'search_nulls',
71+ -- 'bogus']::text[])
72+ -- with ordinality as u(prop,ord)
73+ -- order by ord;
8274select prop,
8375 pg_index_column_has_property('onek_hundred'::regclass, 1, prop) as btree,
8476 pg_index_column_has_property('hash_i4_index'::regclass, 1, prop) as hash,
85- pg_index_column_has_property('gcircleind'::regclass, 1, prop) as gist,
86- pg_index_column_has_property('sp_radix_ind'::regclass, 1, prop) as spgist_radix,
87- pg_index_column_has_property('sp_quad_ind'::regclass, 1, prop) as spgist_quad,
88- pg_index_column_has_property('botharrayidx'::regclass, 1, prop) as gin,
89- pg_index_column_has_property('brinidx'::regclass, 1, prop) as brin
77+ -- pg_index_column_has_property('gcircleind'::regclass, 1, prop) as gist,
78+ -- pg_index_column_has_property('sp_radix_ind'::regclass, 1, prop) as spgist_radix,
79+ -- pg_index_column_has_property('sp_quad_ind'::regclass, 1, prop) as spgist_quad,
80+ pg_index_column_has_property('botharrayidx'::regclass, 1, prop) as gin
9081 from unnest(array['asc', 'desc', 'nulls_first', 'nulls_last',
9182 'orderable', 'distance_orderable', 'returnable',
9283 'search_array', 'search_nulls',
9384 'bogus']::text[])
9485 with ordinality as u(prop,ord)
9586 order by ord;
96- prop | btree | hash | gist | spgist_radix | spgist_quad | gin | brin
97- --------------------+-------+------+------+--------------+-------------+-----+------
98- asc | t | f | f | f | f | f | f
99- desc | f | f | f | f | f | f | f
100- nulls_first | f | f | f | f | f | f | f
101- nulls_last | t | f | f | f | f | f | f
102- orderable | t | f | f | f | f | f | f
103- distance_orderable | f | f | t | f | t | f | f
104- returnable | t | f | f | t | t | f | f
105- search_array | t | f | f | f | f | f | f
106- search_nulls | t | f | t | t | t | f | t
107- bogus | | | | | | |
87+ prop | btree | hash | gin
88+ --------------------+-------+------+-----
89+ asc | t | f | f
90+ desc | f | f | f
91+ nulls_first | f | f | f
92+ nulls_last | t | f | f
93+ orderable | t | f | f
94+ distance_orderable | f | f | f
95+ returnable | t | f | f
96+ search_array | t | f | f
97+ search_nulls | t | f | f
98+ bogus | | |
10899(10 rows)
109100
101+ -- select prop,
102+ -- pg_index_has_property('onek_hundred'::regclass, prop) as btree,
103+ -- pg_index_has_property('hash_i4_index'::regclass, prop) as hash,
104+ -- pg_index_has_property('gcircleind'::regclass, prop) as gist,
105+ -- pg_index_has_property('sp_radix_ind'::regclass, prop) as spgist,
106+ -- pg_index_has_property('botharrayidx'::regclass, prop) as gin,
107+ -- pg_index_has_property('brinidx'::regclass, prop) as brin
108+ -- from unnest(array['clusterable', 'index_scan', 'bitmap_scan',
109+ -- 'backward_scan',
110+ -- 'bogus']::text[])
111+ -- with ordinality as u(prop,ord)
112+ -- order by ord;
110113select prop,
111114 pg_index_has_property('onek_hundred'::regclass, prop) as btree,
112115 pg_index_has_property('hash_i4_index'::regclass, prop) as hash,
113- pg_index_has_property('gcircleind'::regclass, prop) as gist,
114- pg_index_has_property('sp_radix_ind'::regclass, prop) as spgist,
115- pg_index_has_property('botharrayidx'::regclass, prop) as gin,
116- pg_index_has_property('brinidx'::regclass, prop) as brin
116+ -- pg_index_has_property('gcircleind'::regclass, prop) as gist,
117+ -- pg_index_has_property('sp_radix_ind'::regclass, prop) as spgist,
118+ pg_index_has_property('botharrayidx'::regclass, prop) as gin
117119 from unnest(array['clusterable', 'index_scan', 'bitmap_scan',
118120 'backward_scan',
119121 'bogus']::text[])
120122 with ordinality as u(prop,ord)
121123 order by ord;
122- prop | btree | hash | gist | spgist | gin | brin
123- ---------------+-------+------+------+--------+-----+------
124- clusterable | t | f | t | f | f | f
125- index_scan | t | t | t | t | f | f
126- bitmap_scan | t | t | t | t | t | t
127- backward_scan | t | t | f | f | f | f
128- bogus | | | | | |
124+ prop | btree | hash | gin
125+ ---------------+-------+------+-----
126+ clusterable | t | f | f
127+ index_scan | t | t | f
128+ bitmap_scan | t | t | t
129+ backward_scan | t | t | f
130+ bogus | | |
129131(5 rows)
130132
131133select amname, prop, pg_indexam_has_property(a.oid, prop) as p
0 commit comments