Preventing index scans for non-recoverable index AMs
От
Simon Riggs
Тема
Preventing index scans for non-recoverable index AMs
Дата
Msg-id
1229549172.4793.105.camel@ebony.2ndQuadrant
Список
Дерево обсуждения
Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs "Jaime Casanova" <jcasanov@systemguards.com.ec>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs "Jaime Casanova" <jcasanov@systemguards.com.ec>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Alvaro Herrera <alvherre@commandprompt.com>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Alvaro Herrera <alvherre@commandprompt.com>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Josh Berkus <josh@agliodbs.com>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Kenneth Marshall <ktm@rice.edu>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Kenneth Marshall <ktm@rice.edu>
Re: Preventing index scans for non-recoverable index AMs "Jaime Casanova" <jcasanov@systemguards.com.ec>
Re: Preventing index scans for non-recoverable index AMs Kenneth Marshall <ktm@rice.edu>
Re: Preventing index scans for non-recoverable index AMs Jeff Davis <pgsql@j-davis.com>
Re: Preventing index scans for non-recoverable index AMs Jeff Davis <pgsql@j-davis.com>
Re: Preventing index scans for non-recoverable index AMs Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs Peter Eisentraut <peter_e@gmx.net>
Re: Preventing index scans for non-recoverable index AMs Simon Riggs <simon@2ndQuadrant.com>
Re: Preventing index scans for non-recoverable index AMs "Pavan Deolasee" <pavan.deolasee@gmail.com>
Re: Preventing index scans for non-recoverable index AMs Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Preventing index scans for non-recoverable index AMs "Pavan Deolasee" <pavan.deolasee@gmail.com>
Re: Preventing index scans for non-recoverable index AMs Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Preventing index scans for non-recoverable index AMs Greg Stark <greg.stark@enterprisedb.com>
Re: Preventing index scans for non-recoverable index AMs Peter Eisentraut <peter_e@gmx.net>
Re: Preventing index scans for non-recoverable index AMs Tom Lane <tgl@sss.pgh.pa.us>
Re: Preventing index scans for non-recoverable index AMs Kenneth Marshall <ktm@rice.edu>
Hot Standby won't work with hash indexes because they are non-recoverable. We have a number of ways of dealing with this: 1. Workaround: Implement WAL for hash indexes 2. Specific Solution: make hashcostestimate() massively increase cost of scans during recovery so that they will very seldom be picked and make hashbeginscan() refuse scans during recovery in case they do happen 3. Generic Solution: add amisrecoverable flag to pg_am, and alter generic index AM to check whether index is recoverable before selecting it during planning I was hoping to do (1), but I'm looking for a quicker solution now so we can tie up loose ends for review. (2) seems most appropriate, since it will last only until (1) is complete in a later release. Anyone see additional options or prefer alternatives? -- Simon Riggs www.2ndQuadrant.comPostgreSQL Training, Services and Support
В списке pgsql-hackers по дате отправления