Re: PROPOSAL: Support global and local disabling of indexes - Mailing list pgsql-hackers

From Adam Brusselback
Subject Re: PROPOSAL: Support global and local disabling of indexes
Date
Msg-id CAMjNa7cNNq_so_OE51Y-r07VSOmBD3cRZvteFvBRH0DGn8kMMA@mail.gmail.com
Whole thread Raw
In response to Re: PROPOSAL: Support global and local disabling of indexes  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
Just wanted to mention that this would be a useful feature for me. Had previously been bitten by this: https://www.postgresql.org/message-id/flat/CAMjNa7c4pKLZe%2BZ0V49isKycnXQ6Y%3D3BO-4Gsj3QAwsd2r7Wrw%40mail.gmail.com

Ended up "solving" by putting a where clause on all my exclusion constraints I didn't want used for most queries (WHERE 1=1). That allowed me "disable" that index for all queries unless they explicitly have a 1=1 constant in the where clause.


pgsql-hackers by date:

Previous
From: Nitin Jadhav
Date:
Subject: Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs)
Next
From: Aleksander Alekseev
Date:
Subject: Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)