Skip to content

Commit

Permalink
Call InitResultRelInfo in ts_catalog_open_indexes
Browse files Browse the repository at this point in the history
Because a new member was added to `ResulRelInfo` in 17.1, our
initialization of `resultRelInfo` in `ts_catalog_open_indexes` did not
work correctly. Instead with should call `InitResultRelInfo` with the
information.
  • Loading branch information
mkindahl committed Nov 15, 2024
1 parent 910cbbf commit 7dfb3e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ts_catalog/catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,8 @@ ts_catalog_open_indexes(Relation heapRel)
ResultRelInfo *resultRelInfo;

resultRelInfo = makeNode(ResultRelInfo);
resultRelInfo->ri_RangeTableIndex = 0; /* dummy */
resultRelInfo->ri_RelationDesc = heapRel;
resultRelInfo->ri_TrigDesc = NULL; /* we don't fire triggers */

InitResultRelInfo(resultRelInfo, heapRel, 0 /* dummy */, NULL, 0);

ExecOpenIndices(resultRelInfo, false);

Expand Down

0 comments on commit 7dfb3e8

Please sign in to comment.