PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "access/transam.h"
#include "catalog/pg_class_d.h"
#include "pg_upgrade.h"
Go to the source code of this file.
int count_old_cluster_logical_slots | ( | void | ) |
Definition at line 740 of file info.c.
References ClusterInfo::dbarr, DbInfoArr::dbs, DbInfoArr::ndbs, LogicalSlotInfoArr::nslots, old_cluster, and DbInfo::slot_arr.
Referenced by check_new_cluster_logical_replication_slots(), get_loadable_libraries(), and main().
int count_old_cluster_subscriptions | ( | void | ) |
Definition at line 789 of file info.c.
References ClusterInfo::dbarr, DbInfoArr::dbs, DbInfoArr::ndbs, DbInfo::nsubs, and old_cluster.
Referenced by check_new_cluster_subscription_configuration().
|
static |
Definition at line 163 of file info.c.
References FileNameMap::db_oid, DbInfo::db_oid, new_cluster, FileNameMap::new_tablespace, FileNameMap::new_tablespace_suffix, RelInfo::nspname, FileNameMap::nspname, old_cluster, FileNameMap::old_tablespace, FileNameMap::old_tablespace_suffix, RelInfo::relfilenumber, FileNameMap::relfilenumber, RelInfo::relname, FileNameMap::relname, RelInfo::tablespace, and ClusterInfo::tablespace_suffix.
Referenced by gen_db_file_maps().
|
static |
Definition at line 800 of file info.c.
References DbInfo::db_name, DbInfoArr::dbs, free_rel_infos(), DbInfoArr::ndbs, pg_free(), and DbInfo::rel_arr.
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 816 of file info.c.
References RelInfoArr::nrels, RelInfo::nsp_alloc, RelInfo::nspname, pg_free(), RelInfo::relname, RelInfoArr::rels, RelInfo::tablespace, and RelInfo::tblsp_alloc.
Referenced by free_db_and_rel_infos().
FileNameMap* gen_db_file_maps | ( | DbInfo * | old_db, |
DbInfo * | new_db, | ||
int * | nmaps, | ||
const char * | old_pgdata, | ||
const char * | new_pgdata | ||
) |
Definition at line 43 of file info.c.
References create_rel_filename_map(), DbInfo::db_name, maps, RelInfoArr::nrels, RelInfo::nspname, pg_fatal, pg_log(), pg_malloc(), PG_WARNING, DbInfo::rel_arr, RelInfo::relname, RelInfo::reloid, RelInfoArr::rels, and report_unmatched_relation().
Referenced by transfer_all_new_dbs().
|
static |
Definition at line 387 of file info.c.
References atooid, cluster(), conn, connectToServer(), DbInfo::db_name, DbInfo::db_oid, executeQueryOrDie(), GET_MAJOR_VERSION, pg_malloc0(), pg_strdup(), PQclear(), PQfinish(), PQfnumber(), PQgetvalue(), PQntuples(), QUERY_ALLOC, res, and snprintf.
Referenced by get_db_rel_and_slot_infos().
void get_db_rel_and_slot_infos | ( | ClusterInfo * | cluster, |
bool | live_check | ||
) |
Definition at line 280 of file info.c.
References cluster(), free_db_and_rel_infos(), get_db_infos(), get_db_subscription_count(), get_old_cluster_logical_slot_infos(), get_rel_infos(), get_template0_info(), log_opts, old_cluster, pg_log(), PG_VERBOSE, print_db_infos(), and LogOpts::verbose.
Referenced by check_and_dump_old_cluster(), check_new_cluster(), and create_new_objects().
|
static |
Definition at line 760 of file info.c.
References conn, connectToServer(), dbinfo, executeQueryOrDie(), GET_MAJOR_VERSION, ClusterInfo::major_version, old_cluster, PQclear(), PQfinish(), PQgetvalue(), and res.
Referenced by get_db_rel_and_slot_infos().
Definition at line 648 of file info.c.
References LogicalSlotInfo::caught_up, conn, connectToServer(), dbinfo, executeQueryOrDie(), LogicalSlotInfo::failover, GET_MAJOR_VERSION, LogicalSlotInfo::invalid, ClusterInfo::major_version, old_cluster, pg_malloc(), pg_strdup(), LogicalSlotInfo::plugin, PQclear(), PQfinish(), PQfnumber(), PQgetvalue(), PQntuples(), res, LogicalSlotInfo::slotname, and LogicalSlotInfo::two_phase.
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 453 of file info.c.
References atooid, cluster(), conn, connectToServer(), CppAsString2, dbinfo, executeQueryOrDie(), FirstNormalObjectId, RelInfo::indtable, RelInfo::nsp_alloc, RelInfo::nspname, pg_malloc(), pg_strdup(), PQclear(), PQfinish(), PQfnumber(), PQgetvalue(), PQntuples(), QUERY_ALLOC, RelInfo::relfilenumber, RelInfo::relname, relname, RelInfo::reloid, res, snprintf, RelInfo::tablespace, tablespace, RelInfo::tblsp_alloc, and RelInfo::toastheap.
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 322 of file info.c.
References cluster(), conn, connectToServer(), executeQueryOrDie(), GET_MAJOR_VERSION, locale, pg_fatal, pg_malloc(), pg_strdup(), PQclear(), PQfinish(), PQfnumber(), PQgetisnull(), PQgetvalue(), and PQntuples().
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 834 of file info.c.
References DbInfo::db_name, DbInfoArr::dbs, DbInfoArr::ndbs, pg_log(), PG_VERBOSE, print_rel_infos(), print_slot_infos(), DbInfo::rel_arr, and DbInfo::slot_arr.
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 850 of file info.c.
References RelInfoArr::nrels, RelInfo::nspname, pg_log(), PG_VERBOSE, RelInfo::relname, RelInfo::reloid, RelInfoArr::rels, and RelInfo::tablespace.
Referenced by print_db_infos().
|
static |
Definition at line 863 of file info.c.
References LogicalSlotInfoArr::nslots, pg_log(), PG_VERBOSE, LogicalSlotInfo::plugin, LogicalSlotInfo::slotname, LogicalSlotInfoArr::slots, and LogicalSlotInfo::two_phase.
Referenced by print_db_infos().
|
static |
Definition at line 212 of file info.c.
References _, DbInfo::db_name, i, RelInfo::indtable, RelInfoArr::nrels, RelInfo::nspname, pg_log(), PG_WARNING, DbInfo::rel_arr, RelInfo::relname, RelInfo::reloid, RelInfoArr::rels, snprintf, and RelInfo::toastheap.
Referenced by gen_db_file_maps().