5 ms·
Maybe of interest - postgres planner documentation https://www.postgresql.org/docs/current/planner-optimizer.html https://www.postgresql.org/docs/current/plann
by shoo 8y ago
Maybe of interest - postgres planner documentation
https://www.postgresql.org/docs/current/planner-optimizer.html https://www.postgresql.org/docs/current/planner-optimizer.ht...
Genetic query optimiser: https://www.postgresql.org/docs/current/geqo.html https://www.postgresql.org/docs/current/geqo.html
postgres has a number of hooks, which can be used to override the default behaviour. In particular, there are a bunch of hooks that can be used to install a custom query planner. https://github.com/AmatanHead/psql-hooks/blob/master/Readme.md#planner-hooks https://github.com/AmatanHead/psql-hooks/blob/master/Readme....
more generally, ignoring database query optimisation specifically, if you are interested in learning about discrete optimisation techniques, I recommend this course: https://www.coursera.org/learn/discrete-optimization https://www.coursera.org/learn/discrete-optimization
- timClicks 8y agoAlso of interest perhaps is a podcast episode from Software Engineering Radio with Bruce Momjian, who maintains the PostgreSQL query planner: http://www.se-radio.net/2018/06/se-radio-episode-328-bruce-momjian-on-the-postgres-query-planner/ http://www.se-radio.net/2018/06/se-radio-episode-328-bruce-m...
- anarazel 8y agoHe does not maintain the postgresql planner. He's a PostgreSQL developer, but he has not focused on the planner for at least a decade. Edit: Grammar.
- Tostino 8y agoJust listened to the podcast, really good listen which explains the basics really well. Highly recommend. Thanks for the link. Wasn't aware of this podcast before.