51 pg_fatal(
"could not open file \"%s\": %m", report->
path);
59 fprintf(report->
file,
"ALTER EXTENSION %s UPDATE;\n",
72 const char *query =
"SELECT name "
73 "FROM pg_available_extensions "
74 "WHERE installed_version != default_version";
92 "Your installation contains extensions that should be updated\n"
93 "with the ALTER EXTENSION command. The file\n"
95 "when executed by psql by the database superuser will update\n"
void report_extension_updates(ClusterInfo *cluster)
static void process_extension_updates(DbInfo *dbinfo, PGresult *res, void *arg)
bool protocol_negotiation_supported(const ClusterInfo *cluster)
#define fprintf(file, fmt, msg)
int PQfnumber(const PGresult *res, const char *field_name)
static void check_ok(void)
UpgradeTask * upgrade_task_create(void)
void upgrade_task_run(const UpgradeTask *task, const ClusterInfo *cluster)
void void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2
void upgrade_task_free(UpgradeTask *task)
#define fopen_priv(path, mode)
#define GET_MAJOR_VERSION(v)
void prep_status(const char *fmt,...) pg_attribute_printf(1
void report_status(eLogType type, const char *fmt,...) pg_attribute_printf(2
void upgrade_task_add_step(UpgradeTask *task, const char *query, UpgradeTaskProcessCB process_cb, bool free_result, void *arg)
void initPQExpBuffer(PQExpBuffer str)
void termPQExpBuffer(PQExpBuffer str)
const char * quote_identifier(const char *ident)
void appendPsqlMetaConnect(PQExpBuffer buf, const char *dbname)