8000 Merge branch 'postgres:master' into master · sthagen/postgres-postgres@a49057c · GitHub
[go: up one dir, main page]

Skip to content

Commit a49057c

Browse files
authored
Merge branch 'postgres:master' into master
2 parents 6a93868 + 21c9756 commit a49057c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/postgres_fdw/postgres_fdw.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3507,6 +3507,13 @@ estimate_path_cost_size(PlannerInfo *root,
35073507
{
35083508
Assert(foreignrel->reloptkind == RELOPT_UPPER_REL &&
35093509
fpinfo->stage == UPPERREL_GROUP_AGG);
3510+
3511+
/*
3512+
* We can only get here when this function is called from
3513+
* add_foreign_ordered_paths() or add_foreign_final_paths();
3514+
* in which cases, the passed-in fpextra should not be NULL.
3515+
*/
3516+
Assert(fpextra);
35103517
adjust_foreign_grouping_path_cost(root, pathkeys,
35113518
retrieved_rows, width,
35123519
fpextra->limit_tuples,

0 commit comments

Comments
 (0)
0