You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ORCA permission checking crash with RTEPermissionInfo
1. orca.c: transformGroupedWindows() incorrectly created an RTEPermissionInfo
with relid=0 for a subquery RTE. Per PG16 commit a61b1f7, only
RTE_RELATION entries need RTEPermissionInfo. This caused
Assert(OidIsValid(perminfo->relid)) failure when ORCA translated
ROLLUP + window function queries.
2. matview.c: replace_rte_with_delta() converted RTE_RELATION to
RTE_SUBQUERY but forgot to clear perminfoindex, causing
Assert(rte->rtekind == RTE_RELATION || ...) failure during IVM
incremental maintenance with ORCA enabled.
Also fix subquery not inheriting rteperminfos, and correct
AddPerfmInfo/Perfission typos.
0 commit comments