Re: Querying an index's btree version

2020-03-11 Thread Laurenz Albe
On Wed, 2020-03-11 at 17:12 -0400, Darren Lafreniere wrote: > Separate but related follow-up question: when you restore a DB from a backup, > does the restored index use the old format or the latest one? If you restore a pg_dump, you will have the latest version. If you restore a file system bac

Re: Querying an index's btree version

2020-03-11 Thread Peter Geoghegan
On Wed, Mar 11, 2020 at 2:13 PM Darren Lafreniere wrote: > when you restore a DB from a backup, does the restored index use the old > format or the latest one? If you use pg_restore, it uses the latest index format. If you're using pg_upgrade, the version won't change unless and until you REIND

Re: Querying an index's btree version

2020-03-11 Thread Darren Lafreniere
Thank you for the info, Peter. Separate but related follow-up question: when you restore a DB from a backup, does the restored index use the old format or the latest one? Thank you, Darren Lafreniere On Wed, Mar 11, 2020 at 4:30 PM Peter Geoghegan wrote: > On Wed, Mar 11, 2020 at 1:26 PM Dar

Re: Querying an index's btree version

2020-03-11 Thread Peter Geoghegan
On Wed, Mar 11, 2020 at 1:26 PM Darren Lafreniere wrote: > We've read that PG 12 has improved btree index support, and that the latest > internal btree version was bumped from 3 to 4. Is it possible to query the > btree version that a particular index is using? We'd like to automatically > star

Querying an index's btree version

2020-03-11 Thread Darren Lafreniere
Hello, We've read that PG 12 has improved btree index support, and that the latest internal btree version was bumped from 3 to 4. Is it possible to query the btree version that a particular index is using? We'd like to automatically start a concurrent re-index if we detect any btree indexes are st