martin/tests
cthiange 612a8d38c4
Issue 540 - missing index warnings (#569)
Warn users when a PG table geometry column has no index - thus accessing it would be slow.  This is only done for tables. Issues with the views are not printed.

## Implementation

This adds two fields to `TableInfo`:
* `geom_idx: Option<bool>` to tell if a geo column has a spatial index
* `is_view: Option<bool>` to distinguish views from other relations

Missing spatial index warnings are logged for non-view relations. Views
will never have indexed columns and, if referencing a table with a
missing index, it will be logged already.

Couldn't figure out how to make `just test` accept the new warning (from
missing index), so I have them logged as INFO for now :)

fixes #540

---------

Co-authored-by: Christophe Thiange <cthiange@gmail.com>
Co-authored-by: Yuri Astrakhan <YuriAstrakhan@gmail.com>
2023-02-07 01:05:47 -05:00
..
expected tests, report unknown cfg, rm catalog vector flds (#551) 2023-01-12 11:48:15 -05:00
fixtures Issue 540 - missing index warnings (#569) 2023-02-07 01:05:47 -05:00
utils tests, report unknown cfg, rm catalog vector flds (#551) 2023-01-12 11:48:15 -05:00
composite_source.html Multi-source support, new path structure (#456) 2022-11-26 04:46:40 -05:00
config.yaml Add .pmtiles file support (#517) 2023-01-08 14:19:11 -05:00
debug-deckgl.html Multi-source support, new path structure (#456) 2022-11-26 04:46:40 -05:00
debug-leaflet.html Multi-source support, new path structure (#456) 2022-11-26 04:46:40 -05:00
debug-maplibre.html Require PostGIS 3 and use ST_TileEnvelope (#497) 2022-11-30 18:57:27 +02:00
debug.html Improve pre-push hook and debug page (#509) 2022-12-10 09:40:01 +02:00
pg_function_source_test.rs tests, report unknown cfg, rm catalog vector flds (#551) 2023-01-12 11:48:15 -05:00
pg_server_test.rs tests, report unknown cfg, rm catalog vector flds (#551) 2023-01-12 11:48:15 -05:00
pg_table_source_test.rs Add .mbtiles support (#549) 2023-01-09 00:10:23 -05:00
pmt_server_test.rs Add .pmtiles file support (#517) 2023-01-08 14:19:11 -05:00
test.sh Issue 540 - missing index warnings (#569) 2023-02-07 01:05:47 -05:00