pg_ivm/sql
Yugo Nagata aaaa6cff66 Rebuild the query for recalculating min/max after search_path change
Cached plans for recalculating min/max values are built using
pg_ivm_get_viewdef() that returns the view definition query text.
Therefore, if the search_path is changed, the query text is analyzed
again by SPI, and tables or functions in a wrong schema could be
referenced in the plan.

To fix this, we check whether the search_path is still the same
as when we made the cached plan and, if it isn't, we rebuild the
query text.

CVE-2023-23554
2023-03-02 14:44:05 +09:00
..
create_immv.sql Fix segmentation fault in incorrect view def (#39) 2022-12-15 19:03:49 +09:00
pg_ivm.sql Rebuild the query for recalculating min/max after search_path change 2023-03-02 14:44:05 +09:00
refresh_immv.sql Improve refresh_immv behavior a bit 2022-06-23 11:33:06 +09:00