提交 5e793f60 编写于 作者: A Adam Berlin 提交者: Adam Berlin

Move Greenplum specific headers into greenplum directory.

上级 5de9b7ac
......@@ -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);
......
......@@ -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);
......
......@@ -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.
......
......@@ -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);
......
......@@ -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
*
......
......@@ -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
......
#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 */
......@@ -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;
......
......@@ -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
......
......@@ -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,
......
......@@ -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);
......
#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
......@@ -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);
......
......@@ -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);
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册