Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
5e793f60
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5e793f60
编写于
12月 09, 2019
作者:
A
Adam Berlin
提交者:
Adam Berlin
12月 16, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move Greenplum specific headers into greenplum directory.
上级
5de9b7ac
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
73 addition
and
42 deletion
+73
-42
contrib/pg_upgrade/check.c
contrib/pg_upgrade/check.c
+1
-1
contrib/pg_upgrade/file.c
contrib/pg_upgrade/file.c
+1
-1
contrib/pg_upgrade/greenplum/aotable.c
contrib/pg_upgrade/greenplum/aotable.c
+3
-1
contrib/pg_upgrade/greenplum/check_gp.c
contrib/pg_upgrade/greenplum/check_gp.c
+1
-1
contrib/pg_upgrade/greenplum/file_gp.c
contrib/pg_upgrade/greenplum/file_gp.c
+2
-1
contrib/pg_upgrade/greenplum/gpdb4_heap_convert.c
contrib/pg_upgrade/greenplum/gpdb4_heap_convert.c
+2
-1
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
+49
-0
contrib/pg_upgrade/greenplum/reporting.c
contrib/pg_upgrade/greenplum/reporting.c
+2
-1
contrib/pg_upgrade/greenplum/version_gp.c
contrib/pg_upgrade/greenplum/version_gp.c
+2
-1
contrib/pg_upgrade/info.c
contrib/pg_upgrade/info.c
+1
-0
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.c
+2
-0
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/pg_upgrade.h
+4
-34
contrib/pg_upgrade/relfilenode.c
contrib/pg_upgrade/relfilenode.c
+1
-0
contrib/pg_upgrade/server.c
contrib/pg_upgrade/server.c
+1
-0
contrib/pg_upgrade/util.c
contrib/pg_upgrade/util.c
+1
-0
未找到文件。
contrib/pg_upgrade/check.c
浏览文件 @
5e793f60
...
...
@@ -11,7 +11,7 @@
#include "mb/pg_wchar.h"
#include "pg_upgrade.h"
#include "greenplum/pg_upgrade_greenplum.h"
static
void
set_locale_and_encoding
(
ClusterInfo
*
cluster
);
static
void
check_new_cluster_is_empty
(
void
);
...
...
contrib/pg_upgrade/file.c
浏览文件 @
5e793f60
...
...
@@ -13,7 +13,7 @@
#include <fcntl.h>
#include "greenplum/pg_upgrade_greenplum.h"
#ifndef WIN32
static
int
copy_file
(
const
char
*
fromfile
,
const
char
*
tofile
,
bool
force
);
...
...
contrib/pg_upgrade/greenplum/aotable.c
浏览文件 @
5e793f60
...
...
@@ -7,9 +7,11 @@
*/
#include "postgres_fe.h"
#include "pg_upgrade.h"
#include "pg_upgrade_greenplum.h"
#include "pqexpbuffer.h"
/*
* We cannot use executeQueryOrDie for the INSERTs below, because it has a size
* limit on the query.
...
...
contrib/pg_upgrade/greenplum/check_gp.c
浏览文件 @
5e793f60
...
...
@@ -14,7 +14,7 @@
* contrib/pg_upgrade/check_gp.c
*/
#include "pg_upgrade.h"
#include "pg_upgrade
_greenplum
.h"
#include "check_gp.h"
static
void
check_external_partition
(
void
);
...
...
contrib/pg_upgrade/greenplum/file_gp.c
浏览文件 @
5e793f60
...
...
@@ -9,12 +9,13 @@
*/
#include "postgres_fe.h"
#include "pg_upgrade.h"
#include "pg_upgrade
_greenplum
.h"
#include "storage/bufpage.h"
#include "storage/checksum.h"
#include "storage/checksum_impl.h"
/*
* rewriteHeapPageWithChecksum
*
...
...
contrib/pg_upgrade/greenplum/gpdb4_heap_convert.c
浏览文件 @
5e793f60
...
...
@@ -5,13 +5,14 @@
*/
#include "postgres_fe.h"
#include "pg_upgrade.h"
#include "pg_upgrade
_greenplum
.h"
#include "access/htup_details.h"
#include "access/xlogdefs.h"
#include "storage/bufpage.h"
#include "storage/checksum.h"
/*
* GPDB_94_MERGE_FIXME: VARSIZE_ANY_EXHDR() contains a TrapMacro, with
* assertions enabled. But TrapMacro is not defined in FRONTEND
...
...
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
0 → 100644
浏览文件 @
5e793f60
#ifndef PG_UPGRADE_GREENPLUM_H
#define PG_UPGRADE_GREENPLUM_H
/*
* greenplum/pg_upgrade_greenplum.h
*
* Portions Copyright (c) 2019-Present, Pivotal Software Inc
* contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
*/
#include "pg_upgrade.h"
/* aotable.c */
void
restore_aosegment_tables
(
void
);
/* gpdb4_heap_convert.c */
const
char
*
convert_gpdb4_heap_file
(
const
char
*
src
,
const
char
*
dst
,
bool
has_numerics
,
AttInfo
*
atts
,
int
natts
);
void
finish_gpdb4_page_converter
(
void
);
/* file_gp.c */
const
char
*
rewriteHeapPageChecksum
(
const
char
*
fromfile
,
const
char
*
tofile
,
const
char
*
schemaName
,
const
char
*
relName
);
/* version_gp.c */
void
old_GPDB4_check_for_money_data_type_usage
(
void
);
void
old_GPDB4_check_no_free_aoseg
(
void
);
void
check_hash_partition_usage
(
void
);
void
new_gpdb5_0_invalidate_indexes
(
void
);
void
new_gpdb_invalidate_bitmap_indexes
(
void
);
Oid
*
get_numeric_types
(
PGconn
*
conn
);
void
old_GPDB5_check_for_unsupported_distribution_key_data_types
(
void
);
/* check_gp.c */
void
check_greenplum
(
void
);
/* reporting.c */
void
report_progress
(
ClusterInfo
*
cluster
,
progress_type
op
,
char
*
fmt
,...)
pg_attribute_printf
(
3
,
4
);
void
close_progress
(
void
);
#endif
/* PG_UPGRADE_GREENPLUM_H */
contrib/pg_upgrade/greenplum/reporting.c
浏览文件 @
5e793f60
...
...
@@ -6,10 +6,11 @@
* Copyright (c) 2017-Present, Pivotal Software Inc.
*/
#include "pg_upgrade.h"
#include "pg_upgrade
_greenplum
.h"
#include <time.h>
static
FILE
*
progress_file
=
NULL
;
static
int
progress_id
=
0
;
static
int
progress_counter
=
0
;
...
...
contrib/pg_upgrade/greenplum/version_gp.c
浏览文件 @
5e793f60
...
...
@@ -8,10 +8,11 @@
*/
#include "postgres_fe.h"
#include "pg_upgrade.h"
#include "pg_upgrade
_greenplum
.h"
#include "access/transam.h"
/*
* old_8_3_check_for_money_data_type_usage()
* 8.2 -> 8.3
...
...
contrib/pg_upgrade/info.c
浏览文件 @
5e793f60
...
...
@@ -15,6 +15,7 @@
#include "catalog/pg_class.h"
#include "info_gp.h"
#include "greenplum/pg_upgrade_greenplum.h"
static
void
create_rel_filename_map
(
const
char
*
old_data
,
const
char
*
new_data
,
const
DbInfo
*
old_db
,
const
DbInfo
*
new_db
,
...
...
contrib/pg_upgrade/pg_upgrade.c
浏览文件 @
5e793f60
...
...
@@ -43,6 +43,8 @@
#include <langinfo.h>
#endif
#include "greenplum/pg_upgrade_greenplum.h"
static
void
prepare_new_cluster
(
void
);
static
void
prepare_new_databases
(
void
);
static
void
create_new_objects
(
void
);
...
...
contrib/pg_upgrade/pg_upgrade.h
浏览文件 @
5e793f60
#ifndef PG_UPGRADE_H
#define PG_UPGRADE_H
/*
* pg_upgrade.h
*
...
...
@@ -677,44 +679,12 @@ bool reap_child(bool wait_for_child);
#endif
#define Assert(condition) ((void) (true || (condition)))
/* aotable.c */
void
restore_aosegment_tables
(
void
);
/* gpdb4_heap_convert.c */
const
char
*
convert_gpdb4_heap_file
(
const
char
*
src
,
const
char
*
dst
,
bool
has_numerics
,
AttInfo
*
atts
,
int
natts
);
void
finish_gpdb4_page_converter
(
void
);
/* file_gp.c */
void
copy_distributedlog
(
void
);
const
char
*
rewriteHeapPageChecksum
(
const
char
*
fromfile
,
const
char
*
tofile
,
const
char
*
schemaName
,
const
char
*
relName
);
/* version_gp.c */
void
old_GPDB4_check_for_money_data_type_usage
(
void
);
void
old_GPDB4_check_no_free_aoseg
(
void
);
void
check_hash_partition_usage
(
void
);
void
new_gpdb5_0_invalidate_indexes
(
void
);
void
new_gpdb_invalidate_bitmap_indexes
(
void
);
Oid
*
get_numeric_types
(
PGconn
*
conn
);
void
old_GPDB5_check_for_unsupported_distribution_key_data_types
(
void
);
/* check_gp.c */
void
check_greenplum
(
void
);
/* reporting.c */
void
report_progress
(
ClusterInfo
*
cluster
,
progress_type
op
,
char
*
fmt
,...)
__attribute__
((
format
(
PG_PRINTF_ATTRIBUTE
,
3
,
4
)));
void
close_progress
(
void
);
static
inline
bool
is_gpdb6
(
ClusterInfo
*
cluster
)
{
return
GET_MAJOR_VERSION
(
cluster
->
major_version
)
==
904
;
}
#endif
/* PG_UPGRADE_H */
\ No newline at end of file
contrib/pg_upgrade/relfilenode.c
浏览文件 @
5e793f60
...
...
@@ -17,6 +17,7 @@
#include "access/htup_details.h"
#include "access/transam.h"
#include "greenplum/pg_upgrade_greenplum.h"
static
void
transfer_single_new_db
(
pageCnvCtx
*
pageConverter
,
FileNameMap
*
maps
,
int
size
,
char
*
old_tablespace
);
...
...
contrib/pg_upgrade/server.c
浏览文件 @
5e793f60
...
...
@@ -12,6 +12,7 @@
#include "fe_utils/connect.h"
#include "pg_upgrade.h"
#include "greenplum/pg_upgrade_greenplum.h"
static
PGconn
*
get_db_conn
(
ClusterInfo
*
cluster
,
const
char
*
db_name
);
...
...
contrib/pg_upgrade/util.c
浏览文件 @
5e793f60
...
...
@@ -14,6 +14,7 @@
#include <signal.h>
#include "greenplum/pg_upgrade_greenplum.h"
LogOpts
log_opts
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录