mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
612a8d38c4
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> |
||
---|---|---|
.. | ||
expected | ||
fixtures | ||
utils | ||
composite_source.html | ||
config.yaml | ||
debug-deckgl.html | ||
debug-leaflet.html | ||
debug-maplibre.html | ||
debug.html | ||
pg_function_source_test.rs | ||
pg_server_test.rs | ||
pg_table_source_test.rs | ||
pmt_server_test.rs | ||
test.sh |