Adding and Removing Big Indexes in PostgreSQL

In this post we’ll look at a recipe for adding and removing big indexes on big tables. The create operation can take hours, so it’s helpful to have a plan in place for this to run in the background and to monitor progress. We’ll assume these operations take place at the same time as the client application queries, which means they run concurrently and we’ll need to monitor the resources being…