Skip to content

Commit d69df58

Browse files
author
Maksim Milyutin
committed
Fix incompatible functions of pg core for pg 9.6 1C version
1 parent 32c27c6 commit d69df58

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/hooks.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,31 @@ pathman_join_pathlist_hook(PlannerInfo *root,
147147
if (saved_jointype == JOIN_UNIQUE_INNER)
148148
return; /* No way to do this with a parameterized inner path */
149149

150+
#if PG_VERSION_NUM >= 90603
151+
initial_cost_nestloop(root, &workspace, jointype,
152+
outer, inner, /* built paths */
153+
extra);
154+
#else
150155
initial_cost_nestloop(root, &workspace, jointype,
151156
outer, inner, /* built paths */
152157
extra->sjinfo, &extra->semifactors);
158+
#endif
153159

154160
pathkeys = build_join_pathkeys(root, joinrel, jointype, outer->pathkeys);
155161

162+
#if PG_VERSION_NUM >= 90603
163+
nest_path = create_nestloop_path(root, joinrel, jointype, &workspace,
164+
extra, outer, inner,
165+
extra->restrictlist,
166+
pathkeys,
167+
calc_nestloop_required_outer(outer, inner));
168+
#else
156169
nest_path = create_nestloop_path(root, joinrel, jointype, &workspace,
157170
extra->sjinfo, &extra->semifactors,
158171
outer, inner, extra->restrictlist,
159172
pathkeys,
160173
calc_nestloop_required_outer(outer, inner));
174+
#endif
161175

162176
/* Discard all clauses that are to be evaluated by 'inner' */
163177
foreach (rinfo_lc, extra->restrictlist)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy