How to monitor CREATE INDEX / REINDEX progress in Postgres 12+
To monitor the progress of long-running index building or rebuilding, you can use this query:
To monitor the progress of long-running index building or rebuilding, you can use this query: