FROM fruits WHERE type='apple'SELECT * FROM fruits WHERE type='orange' AND state='rotten'CREATE INDEX type_state_index_on_fruits ON fruits(type, state) USING btree;SELECT * FROM fruits
我们有一张有数千万个多边形的表,我们有这样的索引:
CREATE INDEX IF NOT EXISTS polygons_geog_idx ON polygons USING GIST(geog);我认为通过添加另一个索引(如在这个中看到的):CREATE INDEX polygons_geog_area_idx ON polygons (st_area(geog));,它很容易修复。你能用我想要的两个索引吗?