Study and improvement on equivalence classes of PostgreSQL query optimization

Xiaomei SONG,Xiaojun YE,Xiaoqing ZENG,Dong XIE
DOI: https://doi.org/10.3778/j.issn.1002-8331.1310-0286
2014-01-01
Abstract:This paper studies the application of equivalence class in the PostgreSQL query engine. It describes in detail how equivalence classes help the optimizer to generate the equivalent connections, to get potential equality constraints and to obtain data storage sorting information. This paper also finds that while PostgreSQL query engine does not take full advantage of equivalence classes, resulting in missing some of the"best"plan optimization strategy. Therefore, this study improves methods for PostgreSQL equivalence class application:the creation of equivalence classes during the entire query analysis would be carried out in advance, used to simplify the logic of associated tables; with the help of equivalence classes, non-equivalent constraints can be transmitted to the other table columns, which ultimately reduce resource con-sumption and improve query performance. Improved PostgreSQL can make some queries have improved the efficiency of some query.
What problem does this paper attempt to address?