@@ -415,7 +415,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
415415
416416if ((script = fopen_priv (* analyze_script_file_name ,"w" ))== NULL )
417417pg_fatal ("Could not open file \"%s\": %s\n" ,
418- * analyze_script_file_name ,getErrorText (errno ));
418+ * analyze_script_file_name ,getErrorText ());
419419
420420#ifndef WIN32
421421/* add shebang header */
@@ -470,7 +470,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
470470#ifndef WIN32
471471if (chmod (* analyze_script_file_name ,S_IRWXU )!= 0 )
472472pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
473- * analyze_script_file_name ,getErrorText (errno ));
473+ * analyze_script_file_name ,getErrorText ());
474474#endif
475475
476476if (os_info .user_specified )
@@ -526,7 +526,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
526526
527527if ((script = fopen_priv (* deletion_script_file_name ,"w" ))== NULL )
528528pg_fatal ("Could not open file \"%s\": %s\n" ,
529- * deletion_script_file_name ,getErrorText (errno ));
529+ * deletion_script_file_name ,getErrorText ());
530530
531531#ifndef WIN32
532532/* add shebang header */
@@ -582,7 +582,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
582582#ifndef WIN32
583583if (chmod (* deletion_script_file_name ,S_IRWXU )!= 0 )
584584pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
585- * deletion_script_file_name ,getErrorText (errno ));
585+ * deletion_script_file_name ,getErrorText ());
586586#endif
587587
588588check_ok ();
@@ -784,7 +784,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
784784found = true;
785785if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
786786pg_fatal ("Could not open file \"%s\": %s\n" ,
787- output_path ,getErrorText (errno ));
787+ output_path ,getErrorText ());
788788if (!db_used )
789789{
790790fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -887,7 +887,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
887887found = true;
888888if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
889889pg_fatal ("Could not open file \"%s\": %s\n" ,
890- output_path ,getErrorText (errno ));
890+ output_path ,getErrorText ());
891891if (!db_used )
892892{
893893fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -978,7 +978,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
978978found = true;
979979if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
980980pg_fatal ("Could not open file \"%s\": %s\n" ,
981- output_path ,getErrorText (errno ));
981+ output_path ,getErrorText ());
982982if (!db_used )
983983{
984984fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -1026,7 +1026,7 @@ get_bin_version(ClusterInfo *cluster)
10261026if ((output = popen (cmd ,"r" ))== NULL ||
10271027fgets (cmd_output ,sizeof (cmd_output ),output )== NULL )
10281028pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1029- cmd ,getErrorText (errno ));
1029+ cmd ,getErrorText ());
10301030
10311031pclose (output );
10321032