Is it possible in PostgreSQL (as of version 13) to automate index creation without making use of external dependencies?
As an example, imagine we are adding partial indexes on a date field, and we want to keep a separate index for each month (ex. orders_february_2021
, orders_march_2022
, etc).
Would it be possible to automatically create a new index every time a row with a non-indexed (new) month is inserted?