mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-02 04:33:56 +08:00
13 lines
488 B
SQL
13 lines
488 B
SQL
-- Read-only: verify the database/schema and inspect existing indexes.
|
|
SELECT current_database(), current_schema(),
|
|
to_regclass('exploration_nodes') AS target_table;
|
|
|
|
SELECT i.indexrelid::regclass AS index_name,
|
|
i.indisvalid,
|
|
i.indisready,
|
|
pg_size_pretty(pg_relation_size(i.indexrelid)) AS index_size,
|
|
pg_get_indexdef(i.indexrelid) AS definition
|
|
FROM pg_index i
|
|
WHERE i.indrelid = to_regclass('exploration_nodes')
|
|
ORDER BY i.indexrelid::regclass::text;
|