make compatible with pg14

moonshot/custom-path
Nils Dijk 2021-10-20 14:41:44 +02:00
parent 7ee4646e96
commit 29010333cf
No known key found for this signature in database
GPG Key ID: CA1177EF9434F241
1 changed files with 2 additions and 0 deletions

View File

@ -502,10 +502,12 @@ PathBasedPlannerRelationHook(PlannerInfo *root,
/* TODO figure out costing for our grouping */
AggClauseCosts costs = {
#if PG_VERSION_NUM < 140000
.numAggs = numAggs,
.numOrderedAggs = 0,
.hasNonPartial = false,
.hasNonSerial = false,
#endif
.transCost.startup = 0,
.transCost.per_tuple = 0,