sraoss / pg_ivm

IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
Other
990 stars 27 forks source link

Fix bugs of IVM that occur when column names are specified in aggrega… #41

Closed yugo-n closed 1 year ago

yugo-n commented 1 year ago

…te views

The names of additional columns for aggregate views are derived from column names specified in the first parameter of create_immv, but when the number was less than the length of the actual target list, segmentation fault occurred. Furthermore, when the number of specified columns is more than the target list, it overrode additional column names and it caused a failure of incremental maintenance of an aggregate view.

To fix then, check the length of the specified column name list not to access invalid area, and also prevent from overriding additional column names.