make compatible with pg14

unified-planner/primary-key-joins
Nils Dijk 2021-10-20 14:41:44 +02:00
parent 2b3c6a2bdd
commit 86f5b38a16
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,