|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include "access/transam.h"#include "catalog/pg_class_d.h"#include "pg_upgrade.h"#include "pqexpbuffer.h"
Go to the source code of this file.
Definition at line 774 of file info.c.
References ClusterInfo::dbarr, DbInfoArr::dbs, fb(), DbInfoArr::ndbs, LogicalSlotInfoArr::nslots, old_cluster, and DbInfo::slot_arr.
Referenced by check_new_cluster_replication_slots(), get_loadable_libraries(), and main().
|
static |
Definition at line 165 of file info.c.
References FileNameMap::db_oid, fb(), new_cluster, FileNameMap::new_tablespace, FileNameMap::new_tablespace_suffix, FileNameMap::nspname, old_cluster, FileNameMap::old_tablespace, FileNameMap::old_tablespace_suffix, FileNameMap::relfilenumber, FileNameMap::relname, and ClusterInfo::tablespace_suffix.
Referenced by gen_db_file_maps().
Definition at line 818 of file info.c.
References fb(), free_rel_infos(), and pg_free().
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 834 of file info.c.
References fb(), 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 45 of file info.c.
References create_rel_filename_map(), fb(), maps, pg_fatal, pg_log(), pg_malloc(), PG_WARNING, and report_unmatched_relation().
Referenced by transfer_all_new_dbs().
|
static |
Definition at line 404 of file info.c.
References atooid, cluster(), conn, connectToServer(), dbinfos, executeQueryOrDie(), fb(), GET_MAJOR_VERSION, is_absolute_path, pg_malloc0(), pg_strdup(), PQclear, PQfinish(), PQfnumber(), PQgetvalue, PQntuples, QUERY_ALLOC, and snprintf.
Referenced by get_db_rel_and_slot_infos().
| void get_db_rel_and_slot_infos | ( | ClusterInfo * | cluster | ) |
Definition at line 280 of file info.c.
References cluster(), fb(), free_db_and_rel_infos(), get_db_infos(), GET_MAJOR_VERSION, get_old_cluster_logical_slot_infos_query(), get_rel_infos_query(), get_template0_info(), log_opts, old_cluster, pg_free(), pg_log(), PG_VERBOSE, print_db_infos(), process_old_cluster_logical_slot_infos(), process_rel_infos(), upgrade_task_add_step(), upgrade_task_create(), upgrade_task_free(), upgrade_task_run(), and LogOpts::verbose.
Referenced by check_and_dump_old_cluster(), check_new_cluster(), and create_new_objects().
Definition at line 685 of file info.c.
References UserOpts::live_check, psprintf(), and user_opts.
Referenced by get_db_rel_and_slot_infos().
Definition at line 487 of file info.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), CppAsString2, PQExpBufferData::data, fb(), FirstNormalObjectId, GET_MAJOR_VERSION, initPQExpBuffer(), ClusterInfo::major_version, old_cluster, UserOpts::transfer_mode, TRANSFER_MODE_SWAP, and user_opts.
Referenced by get_db_rel_and_slot_infos().
| void get_subscription_info | ( | ClusterInfo * | cluster | ) |
Definition at line 790 of file info.c.
References cluster(), conn, connectToServer(), executeQueryOrDie(), fb(), GET_MAJOR_VERSION, PQclear, PQfinish(), PQfnumber(), and PQgetvalue.
Referenced by check_and_dump_old_cluster().
|
static |
Definition at line 339 of file info.c.
References cluster(), conn, connectToServer(), DbLocaleInfo::db_collate, DbLocaleInfo::db_collprovider, DbLocaleInfo::db_ctype, DbLocaleInfo::db_encoding, DbLocaleInfo::db_locale, executeQueryOrDie(), fb(), GET_MAJOR_VERSION, pg_fatal, pg_malloc(), pg_strdup(), PQclear, PQfinish(), PQfnumber(), PQgetisnull, PQgetvalue, and PQntuples.
Referenced by get_db_rel_and_slot_infos().
Definition at line 852 of file info.c.
References fb(), pg_log(), PG_VERBOSE, print_rel_infos(), and print_slot_infos().
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 868 of file info.c.
References fb(), 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 881 of file info.c.
References fb(), LogicalSlotInfoArr::nslots, pg_log(), PG_VERBOSE, and LogicalSlotInfoArr::slots.
Referenced by print_db_infos().
|
static |
Definition at line 723 of file info.c.
References fb(), LogicalSlotInfoArr::nslots, pg_malloc(), pg_strdup(), PQfnumber(), PQgetvalue, PQntuples, DbInfo::slot_arr, LogicalSlotInfo::slotname, and LogicalSlotInfoArr::slots.
Referenced by get_db_rel_and_slot_infos().
Definition at line 585 of file info.c.
References atooid, DbInfo::db_tablespace, fb(), is_absolute_path, RelInfoArr::nrels, os_info, pfree(), pg_malloc(), pg_strdup(), ClusterInfo::pgdata, PQfnumber(), PQgetvalue, PQntuples, psprintf(), DbInfo::rel_arr, relname, RelInfo::reloid, RelInfoArr::rels, OSInfo::running_cluster, and tablespace.
Referenced by get_db_rel_and_slot_infos().
|
static |
Definition at line 214 of file info.c.
References _, DbInfo::db_name, fb(), 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().