Apply upstream 02a30a09 (Correct constness of system attributes)

(cherry picked from commit 8d78b0783e)
This commit is contained in:
Julien Rouhaud 2018-11-04 11:07:54 +01:00
parent 34c2021004
commit 7a79114f54

View file

@ -62,7 +62,7 @@ build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
if (indexkey != 0)
{
/* simple column */
Form_pg_attribute att_tup;
const FormData_pg_attribute *att_tup;
if (indexkey < 0)
att_tup = SystemAttributeDefinition(indexkey,