{
if (user_opts.check && live_check)
{
- pg_log(PG_REPORT, "Performing Consistency Checks on Old Live Server\n");
- pg_log(PG_REPORT, "------------------------------------------------\n");
+ pg_log(PG_REPORT,
+ "Performing Consistency Checks on Old Live Server\n"
+ "------------------------------------------------\n");
}
else
{
- pg_log(PG_REPORT, "Performing Consistency Checks\n");
- pg_log(PG_REPORT, "-----------------------------\n");
+ pg_log(PG_REPORT,
+ "Performing Consistency Checks\n"
+ "-----------------------------\n");
}
}
bool found = false;
char output_path[MAXPGPATH];
- prep_status("Checking for JSONB user data types");
+ prep_status("Checking for incompatible jsonb data type");
snprintf(output_path, sizeof(output_path), "tables_using_jsonb.txt");
" a.atttypid = 'pg_catalog.jsonb'::pg_catalog.regtype AND "
" c.relnamespace = n.oid AND "
/* exclude possible orphaned temp tables */
- " n.nspname !~ '^pg_temp_' AND "
+ " n.nspname !~ '^pg_temp_' AND "
" n.nspname NOT IN ('pg_catalog', 'information_schema')");
ntups = PQntuples(res);
if (found)
{
pg_log(PG_REPORT, "fatal\n");
- pg_fatal("Your installation contains one of the JSONB data types in user tables.\n"
- "The internal format of JSONB changed during 9.4 beta so this cluster cannot currently\n"
+ pg_fatal("Your installation contains the \"jsonb\" data type in user tables.\n"
+ "The internal format of \"jsonb\" changed during 9.4 beta so this cluster cannot currently\n"
"be upgraded. You can remove the problem tables and restart the upgrade. A list\n"
"of the problem columns is in the file:\n"
" %s\n\n", output_path);
PGresult *res;
PGconn *conn = connectToServer(cluster, "template1");
- prep_status("Checking for roles starting with 'pg_'");
+ prep_status("Checking for roles starting with \"pg_\"");
res = executeQueryOrDie(conn,
"SELECT * "
if (PQntuples(res) != 0)
{
if (cluster == &old_cluster)
- pg_fatal("The source cluster contains roles starting with 'pg_'\n");
+ pg_fatal("The source cluster contains roles starting with \"pg_\"\n");
else
- pg_fatal("The target cluster contains roles starting with 'pg_'\n");
+ pg_fatal("The target cluster contains roles starting with \"pg_\"\n");
}
PQclear(res);
report_status(PG_FATAL, "check for \"%s\" failed: %s\n",
subDirName, strerror(errno));
else if (!S_ISDIR(statBuf.st_mode))
- report_status(PG_FATAL, "%s is not a directory\n",
+ report_status(PG_FATAL, "\"%s\" is not a directory\n",
subDirName);
}
report_status(PG_FATAL, "check for \"%s\" failed: %s\n",
cluster->bindir, strerror(errno));
else if (!S_ISDIR(statBuf.st_mode))
- report_status(PG_FATAL, "%s is not a directory\n",
+ report_status(PG_FATAL, "\"%s\" is not a directory\n",
cluster->bindir);
validate_exec(cluster->bindir, "postgres");
if (script == NULL && (script = fopen_priv(output_path, "w")) == NULL)
pg_fatal("could not open file \"%s\": %s\n",
output_path, strerror(errno));
- fprintf(script, _("could not load library \"%s\":\n%s\n"),
+ fprintf(script, _("could not load library \"%s\": %s"),
lib,
PQerrorMessage(conn));
}
check_new_cluster();
report_clusters_compatible();
- pg_log(PG_REPORT, "\nPerforming Upgrade\n");
- pg_log(PG_REPORT, "------------------\n");
+ pg_log(PG_REPORT,
+ "\n"
+ "Performing Upgrade\n"
+ "------------------\n");
prepare_new_cluster();
issue_warnings_and_set_wal_level();
- pg_log(PG_REPORT, "\nUpgrade Complete\n");
- pg_log(PG_REPORT, "----------------\n");
+ pg_log(PG_REPORT,
+ "\n"
+ "Upgrade Complete\n"
+ "----------------\n");
output_completion_banner(analyze_script_file_name,
deletion_script_file_name);
if (conn == NULL || PQstatus(conn) != CONNECTION_OK)
{
- pg_log(PG_REPORT, "connection to database failed: %s\n",
+ pg_log(PG_REPORT, "connection to database failed: %s",
PQerrorMessage(conn));
if (conn)
if ((status != PGRES_TUPLES_OK) && (status != PGRES_COMMAND_OK))
{
- pg_log(PG_REPORT, "SQL command failed\n%s\n%s\n", query,
+ pg_log(PG_REPORT, "SQL command failed\n%s\n%s", query,
PQerrorMessage(conn));
PQclear(result);
PQfinish(conn);
if ((conn = get_db_conn(cluster, "template1")) == NULL ||
PQstatus(conn) != CONNECTION_OK)
{
- pg_log(PG_REPORT, "\nconnection to database failed: %s\n",
+ pg_log(PG_REPORT, "\nconnection to database failed: %s",
PQerrorMessage(conn));
if (conn)
PQfinish(conn);
pg_log(PG_WARNING, "\n"
"Your installation contains large objects. The new database has an\n"
"additional large object permission table. After upgrading, you will be\n"
- "given a command to populate the pg_largeobject permission table with\n"
+ "given a command to populate the pg_largeobject_metadata table with\n"
"default permissions.\n\n");
else
pg_log(PG_WARNING, "\n"
bool found = false;
char output_path[MAXPGPATH];
- prep_status("Checking for invalid \"line\" user columns");
+ prep_status("Checking for incompatible \"line\" data type");
snprintf(output_path, sizeof(output_path), "tables_using_line.txt");
pg_log(PG_WARNING, "\n"
"Your installation contains hash indexes. These indexes have different\n"
"internal formats between your old and new clusters, so they must be\n"
- "reindexed with the REINDEX command. The file:\n"
+ "reindexed with the REINDEX command. The file\n"
" %s\n"
"when executed by psql by the database superuser will recreate all invalid\n"
"indexes; until then, none of these indexes will be used.\n\n",