PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "access/transam.h"
#include "catalog/pg_language_d.h"
#include "common/int.h"
#include "pg_upgrade.h"
Go to the source code of this file.
Data Structures | |
struct | loadable_libraries_state |
Functions | |
static int | library_name_compare (const void *p1, const void *p2) |
static void | process_loadable_libraries (DbInfo *dbinfo, PGresult *res, void *arg) |
void | get_loadable_libraries (void) |
void | check_loadable_libraries (void) |
void check_loadable_libraries | ( | void | ) |
Definition at line 165 of file function.c.
References _, LogOpts::basedir, check_ok(), conn, connectToServer(), DbInfo::db_name, ClusterInfo::dbarr, LibraryInfo::dbnum, DbInfoArr::dbs, fopen_priv, fprintf, OSInfo::libraries, library_name_compare(), log_opts, MAXPGPATH, LibraryInfo::name, new_cluster, OSInfo::num_libraries, old_cluster, os_info, pg_fatal, pg_log(), PG_REPORT, PGRES_COMMAND_OK, PQclear(), PQerrorMessage(), PQescapeStringConn(), PQexec(), PQfinish(), PQresultStatus(), prep_status(), qsort, res, and snprintf.
Referenced by check_new_cluster().
void get_loadable_libraries | ( | void | ) |
Definition at line 79 of file function.c.
References count_old_cluster_logical_slots(), ClusterInfo::dbarr, LibraryInfo::dbnum, DbInfoArr::dbs, FirstNormalObjectId, LogicalSlotInfo::invalid, OSInfo::libraries, LibraryInfo::name, DbInfoArr::ndbs, LogicalSlotInfoArr::nslots, OSInfo::num_libraries, old_cluster, os_info, pg_free(), pg_malloc(), pg_strdup(), LogicalSlotInfo::plugin, PQclear(), PQgetvalue(), PQntuples(), process_loadable_libraries(), psprintf(), res, DbInfo::slot_arr, LogicalSlotInfoArr::slots, loadable_libraries_state::totaltups, upgrade_task_add_step(), upgrade_task_create(), upgrade_task_free(), and upgrade_task_run().
Referenced by check_and_dump_old_cluster().
|
static |
Definition at line 29 of file function.c.
References cmp(), p2, pg_cmp_s32(), and pg_cmp_size().
Referenced by check_loadable_libraries().
Definition at line 60 of file function.c.
References arg, AssertVariableIsOfType, ClusterInfo::dbarr, dbinfo, DbInfoArr::dbs, old_cluster, PQntuples(), and res.
Referenced by get_loadable_libraries().