-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen-patch.diff
96 lines (89 loc) · 2.82 KB
/
codegen-patch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
From b7bf2e94056bcc53180250ac895955bbf371518a Mon Sep 17 00:00:00 2001
From: Mohammad Dashti <[email protected]>
Date: Tue, 29 Dec 2020 00:47:10 -0800
Subject: [PATCH] Revert "Generated code"
This reverts commit 5edbbe6069ad16828305d44b0242a4a16bf086bb.
---
src/gen/libpg_common.jl | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/gen/libpg_common.jl b/src/gen/libpg_common.jl
index facd0d9..3ab610e 100644
--- a/src/gen/libpg_common.jl
+++ b/src/gen/libpg_common.jl
@@ -491,7 +491,7 @@ struct ListCell
next::Ptr{ListCell}
end
-struct List
+struct List <: AbstractVector{Any}
type::NodeTag
length::Cint
head::Ptr{ListCell}
@@ -3793,10 +3793,10 @@ struct ParamPathInfo
ppi_clauses::Ptr{List}
end
-struct Path
+struct PathGeneric{REL_OPT_INFO}
type::NodeTag
pathtype::NodeTag
- parent::Ptr{RelOptInfo}
+ parent::Ptr{REL_OPT_INFO}
pathtarget::Ptr{PathTarget}
param_info::Ptr{ParamPathInfo}
parallel_aware::bool
@@ -3808,7 +3808,7 @@ struct Path
pathkeys::Ptr{List}
end
-struct RelOptInfo
+struct RelOptInfoGeneric{PLANNER_INFO}
type::NodeTag
reloptkind::RelOptKind
relids::Relids
@@ -3820,9 +3820,9 @@ struct RelOptInfo
pathlist::Ptr{List}
ppilist::Ptr{List}
partial_pathlist::Ptr{List}
- cheapest_startup_path::Ptr{Path}
- cheapest_total_path::Ptr{Path}
- cheapest_unique_path::Ptr{Path}
+ cheapest_startup_path::Ptr{PathGeneric{RelOptInfoGeneric{PLANNER_INFO}}}
+ cheapest_total_path::Ptr{PathGeneric{RelOptInfoGeneric{PLANNER_INFO}}}
+ cheapest_unique_path::Ptr{PathGeneric{RelOptInfoGeneric{PLANNER_INFO}}}
cheapest_parameterized_paths::Ptr{List}
direct_lateral_relids::Relids
lateral_relids::Relids
@@ -3840,7 +3840,7 @@ struct RelOptInfo
pages::BlockNumber
tuples::Cdouble
allvisfrac::Cdouble
- subroot::Ptr{PlannerInfo}
+ subroot::Ptr{PLANNER_INFO}
subplan_params::Ptr{List}
rel_parallel_workers::Cint
serverid::Oid
@@ -3866,7 +3866,7 @@ struct PlannerInfo
parent_root::Ptr{PlannerInfo}
plan_params::Ptr{List}
outer_params::Ptr{Bitmapset}
- simple_rel_array::Ptr{Ptr{RelOptInfo}}
+ simple_rel_array::Ptr{Ptr{RelOptInfoGeneric{PlannerInfo}}}
simple_rel_array_size::Cint
simple_rte_array::Ptr{Ptr{RangeTblEntry}}
all_baserels::Relids
@@ -3913,12 +3913,15 @@ struct PlannerInfo
hasPseudoConstantQuals::bool
hasRecursion::bool
wt_param_id::Cint
- non_recursive_path::Ptr{Path}
+ non_recursive_path::Ptr{PathGeneric{RelOptInfoGeneric{PlannerInfo}}}
curOuterRels::Relids
curOuterParams::Ptr{List}
join_search_private::Ptr{Cvoid}
end
+const RelOptInfo = RelOptInfoGeneric{PlannerInfo}
+const Path = PathGeneric{RelOptInfo}
+
struct IndexOptInfo
type::NodeTag
indexoid::Oid
--
2.20.1