Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4d9822c

Browse files
committed
support for Postgres Pro 10, remove dead code
1 parent8e6b563 commit4d9822c

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
#ifPG_VERSION_NUM >=100000
164+
165+
#ifndefPGPRO_VERSION
164166
#definecreate_append_path_compat(rel,subpaths,required_outer,parallel_workers) \
165167
create_append_path((rel), (subpaths), (required_outer), (parallel_workers), NIL)
168+
#else
169+
#definecreate_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
#elifPG_VERSION_NUM >=90600
167176

168177
#ifndefPGPRO_VERSION
169178
#definecreate_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
#definecreate_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
#ifPG_VERSION_NUM >=100000
761758
create_stmt.partbound=NULL;
762759
create_stmt.partspec=NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp