@@ -62,13 +62,15 @@ output_check_banner(bool live_check)
62
62
{
63
63
if (user_opts .check && live_check )
64
64
{
65
- pg_log (PG_REPORT , "Performing Consistency Checks on Old Live Server\n" );
66
- pg_log (PG_REPORT , "------------------------------------------------\n" );
65
+ pg_log (PG_REPORT ,
66
+ "Performing Consistency Checks on Old Live Server\n"
67
+ "------------------------------------------------\n" );
67
68
}
68
69
else
69
70
{
70
- pg_log (PG_REPORT , "Performing Consistency Checks\n" );
71
- pg_log (PG_REPORT , "-----------------------------\n" );
71
+ pg_log (PG_REPORT ,
72
+ "Performing Consistency Checks\n"
73
+ "-----------------------------\n" );
72
74
}
73
75
}
74
76
@@ -991,7 +993,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
991
993
bool found = false;
992
994
char output_path [MAXPGPATH ];
993
995
994
- prep_status ("Checking for JSONB user data types " );
996
+ prep_status ("Checking for incompatible jsonb data type " );
995
997
996
998
snprintf (output_path , sizeof (output_path ), "tables_using_jsonb.txt" );
997
999
@@ -1022,7 +1024,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
1022
1024
" a.atttypid = 'pg_catalog.jsonb'::pg_catalog.regtype AND "
1023
1025
" c.relnamespace = n.oid AND "
1024
1026
/* exclude possible orphaned temp tables */
1025
- " n.nspname !~ '^pg_temp_' AND "
1027
+ " n.nspname !~ '^pg_temp_' AND "
1026
1028
" n.nspname NOT IN ('pg_catalog', 'information_schema')" );
1027
1029
1028
1030
ntups = PQntuples (res );
@@ -1057,8 +1059,8 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
1057
1059
if (found )
1058
1060
{
1059
1061
pg_log (PG_REPORT , "fatal\n" );
1060
- pg_fatal ("Your installation contains one of the JSONB data types in user tables.\n"
1061
- "The internal format of JSONB changed during 9.4 beta so this cluster cannot currently\n"
1062
+ pg_fatal ("Your installation contains the \"jsonb\" data type in user tables.\n"
1063
+ "The internal format of \"jsonb\" changed during 9.4 beta so this cluster cannot currently\n"
1062
1064
"be upgraded. You can remove the problem tables and restart the upgrade. A list\n"
1063
1065
"of the problem columns is in the file:\n"
1064
1066
" %s\n\n" , output_path );
@@ -1078,7 +1080,7 @@ check_for_pg_role_prefix(ClusterInfo *cluster)
1078
1080
PGresult * res ;
1079
1081
PGconn * conn = connectToServer (cluster , "template1" );
1080
1082
1081
- prep_status ("Checking for roles starting with ' pg_' " );
1083
+ prep_status ("Checking for roles starting with \" pg_\" " );
1082
1084
1083
1085
res = executeQueryOrDie (conn ,
1084
1086
"SELECT * "
@@ -1088,9 +1090,9 @@ check_for_pg_role_prefix(ClusterInfo *cluster)
1088
1090
if (PQntuples (res ) != 0 )
1089
1091
{
1090
1092
if (cluster == & old_cluster )
1091
- pg_fatal ("The source cluster contains roles starting with ' pg_' \n" );
1093
+ pg_fatal ("The source cluster contains roles starting with \" pg_\" \n" );
1092
1094
else
1093
- pg_fatal ("The target cluster contains roles starting with ' pg_' \n" );
1095
+ pg_fatal ("The target cluster contains roles starting with \" pg_\" \n" );
1094
1096
}
1095
1097
1096
1098
PQclear (res );
0 commit comments