@ -421,7 +421,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
if ( ( script = fopen_priv ( * analyze_script_file_name , " w " ) ) = = NULL )
pg_fatal ( " Could not open file \" %s \" : %s \n " ,
* analyze_script_file_name , getErrorText ( errno ) ) ;
* analyze_script_file_name , getErrorText ( ) ) ;
# ifndef WIN32
/* add shebang header */
@ -476,7 +476,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
# ifndef WIN32
if ( chmod ( * analyze_script_file_name , S_IRWXU ) ! = 0 )
pg_fatal ( " Could not add execute permission to file \" %s \" : %s \n " ,
* analyze_script_file_name , getErrorText ( errno ) ) ;
* analyze_script_file_name , getErrorText ( ) ) ;
# endif
if ( os_info . user_specified )
@ -532,7 +532,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
if ( ( script = fopen_priv ( * deletion_script_file_name , " w " ) ) = = NULL )
pg_fatal ( " Could not open file \" %s \" : %s \n " ,
* deletion_script_file_name , getErrorText ( errno ) ) ;
* deletion_script_file_name , getErrorText ( ) ) ;
# ifndef WIN32
/* add shebang header */
@ -588,7 +588,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
# ifndef WIN32
if ( chmod ( * deletion_script_file_name , S_IRWXU ) ! = 0 )
pg_fatal ( " Could not add execute permission to file \" %s \" : %s \n " ,
* deletion_script_file_name , getErrorText ( errno ) ) ;
* deletion_script_file_name , getErrorText ( ) ) ;
# endif
check_ok ( ) ;
@ -790,7 +790,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
found = true ;
if ( script = = NULL & & ( script = fopen_priv ( output_path , " w " ) ) = = NULL )
pg_fatal ( " Could not open file \" %s \" : %s \n " ,
output_path , getErrorText ( errno ) ) ;
output_path , getErrorText ( ) ) ;
if ( ! db_used )
{
fprintf ( script , " Database: %s \n " , active_db - > db_name ) ;
@ -893,7 +893,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
found = true ;
if ( script = = NULL & & ( script = fopen_priv ( output_path , " w " ) ) = = NULL )
pg_fatal ( " Could not open file \" %s \" : %s \n " ,
output_path , getErrorText ( errno ) ) ;
output_path , getErrorText ( ) ) ;
if ( ! db_used )
{
fprintf ( script , " Database: %s \n " , active_db - > db_name ) ;
@ -984,7 +984,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
found = true ;
if ( script = = NULL & & ( script = fopen_priv ( output_path , " w " ) ) = = NULL )
pg_fatal ( " Could not open file \" %s \" : %s \n " ,
output_path , getErrorText ( errno ) ) ;
output_path , getErrorText ( ) ) ;
if ( ! db_used )
{
fprintf ( script , " Database: %s \n " , active_db - > db_name ) ;
@ -1032,7 +1032,7 @@ get_bin_version(ClusterInfo *cluster)
if ( ( output = popen ( cmd , " r " ) ) = = NULL | |
fgets ( cmd_output , sizeof ( cmd_output ) , output ) = = NULL )
pg_fatal ( " Could not get pg_ctl version data using %s: %s \n " ,
cmd , getErrorText ( errno ) ) ;
cmd , getErrorText ( ) ) ;
pclose ( output ) ;