Skip to content

Commit

Permalink
Fix first/last on PG16
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Oct 7, 2023
1 parent 7a5cecf commit 3144099
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/planner/agg_bookend.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#include <utils/syscache.h>
#include <utils/typcache.h>

#include "compat/compat.h"
#include "planner.h"
#include "utils.h"
#include "extension.h"
Expand Down Expand Up @@ -593,6 +594,9 @@ build_first_last_path(PlannerInfo *root, FirstLastAggInfo *fl_info, Oid eqop, Oi
/* and we haven't made equivalence classes, either */
Assert(subroot->eq_classes == NIL);
/* and we haven't created PlaceHolderInfos, either */
#if PG16_GE
subroot->placeholdersFrozen = false;
#endif
Assert(subroot->placeholder_list == NIL);

mminfo = fl_info->m_agg_info;
Expand Down

0 comments on commit 3144099

Please sign in to comment.