Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for postgres hasSpatialIndex
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--CREATE SCHEMA IF NOT EXISTS qgis_test; | ||
|
||
|
||
DROP TABLE IF EXISTS qgis_test.hspi_table; | ||
|
||
CREATE TABLE qgis_test.hspi_table | ||
( | ||
id serial PRIMARY KEY, | ||
geom_without_index geometry(Polygon,4326), | ||
geom_with_index geometry(Polygon,4326) | ||
); | ||
CREATE INDEX hspi_index_1 ON qgis_test.hspi_table USING GIST (geom_with_index); | ||
|
||
CREATE MATERIALIZED view qgis_test.hspi_materialized_view AS SELECT * FROM qgis_test.hspi_table; | ||
CREATE INDEX hspi_index_2 ON qgis_test.hspi_materialized_view USING GIST (geom_with_index); | ||
|