Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4d9822c

Browse files
committed
support for Postgres Pro 10, remove dead code
1 parent 8e6b563 commit 4d9822c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/include/compat/pg_compat.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,23 @@
161161
* create_append_path()
162162
*/
163163
#if PG_VERSION_NUM >= 100000
164+
165+
#ifndef PGPRO_VERSION
164166
#define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \
165167
create_append_path((rel), (subpaths), (required_outer), (parallel_workers), NIL)
168+
#else
169+
#define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \
170+
create_append_path((rel), (subpaths), (required_outer), (parallel_workers), NIL, \
171+
false, NIL)
172+
173+
#endif /* PGPRO_VERSION */
174+
166175
#elif PG_VERSION_NUM >= 90600
167176

168177
#ifndef PGPRO_VERSION
169178
#define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \
170179
create_append_path((rel), (subpaths), (required_outer), (parallel_workers))
171-
#else /* ifdef PGPRO_VERSION */
180+
#else
172181
#define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \
173182
create_append_path((rel), (subpaths), (required_outer), \
174183
false, NIL, (parallel_workers))

src/partition_creation.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,6 @@ create_single_partition_internal(Oid parent_relid,
754754
create_stmt.oncommit = ONCOMMIT_NOOP;
755755
create_stmt.tablespacename = tablespace;
756756
create_stmt.if_not_exists = false;
757-
#if defined(PGPRO_EE) && PG_VERSION_NUM >= 90600
758-
create_stmt.partition_info = NULL;
759-
#endif
760757
#if PG_VERSION_NUM >= 100000
761758
create_stmt.partbound = NULL;
762759
create_stmt.partspec = NULL;

0 commit comments

Comments
 (0)