mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Add missing initializations of p_perminfo
In a61b1f7482
, we failed to update transformFromClauseItem() and
buildNSItemFromLists() to set ParseNamespaceItem.p_perminfo causing
it to point to garbage.
Pointed out by Tom Lane.
Reported-by: Farias de Oliveira <matheusfarias519@gmail.com>
Discussion: https://postgr.es/m/3173476.1689286373%40sss.pgh.pa.us
Backpatch-through: 16
This commit is contained in:
@@ -1392,6 +1392,7 @@ buildNSItemFromLists(RangeTblEntry *rte, Index rtindex,
|
||||
nsitem->p_names = rte->eref;
|
||||
nsitem->p_rte = rte;
|
||||
nsitem->p_rtindex = rtindex;
|
||||
nsitem->p_perminfo = NULL;
|
||||
nsitem->p_nscolumns = nscolumns;
|
||||
/* set default visibility flags; might get changed later */
|
||||
nsitem->p_rel_visible = true;
|
||||
|
Reference in New Issue
Block a user