citus/src/backend
naisila a986e224af Rework PlannedStmt and Query's Permission Info
The main issue lies in the following entries of PlannedStmt:
{
   rtable
   permInfos
}

Each rtable has an int perminfoindex, and its actual permission info
is obtained through the following:
permInfos[perminfoindex]

We had a crash because perminfoindexes were not updated in the
finalized planned statement after distributed planner hook.

So, basically, everywhere we set a query's or planned statement's
rtable entry, we need to set the rteperminfos/permInfos accordingly.

Relevant PG commits:
a61b1f7482
a61b1f74823c9c4f79c95226a461f1e7a367764b
b803b7d132
b803b7d132e3505ab77c29acf91f3d1caa298f95
2023-07-28 15:48:49 +03:00
..
columnar Fix PGIOAlignedBlock Assert crash in PG16 2023-07-28 15:48:49 +03:00
distributed Rework PlannedStmt and Query's Permission Info 2023-07-28 15:48:49 +03:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00