~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to contrib/pg_upgrade/version_old_8_3.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mto: (6.1.1 sid) (10.1.1 oneiric-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110614095329-71gfhjywyp2c27au
Tags: upstream-9.1~beta2
ImportĀ upstreamĀ versionĀ 9.1~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                {
71
71
                        found = true;
72
72
                        if (script == NULL && (script = fopen(output_path, "w")) == NULL)
73
 
                                pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
73
                                pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
74
74
                        if (!db_used)
75
75
                        {
76
76
                                fprintf(script, "Database:  %s\n", active_db->db_name);
160
160
                {
161
161
                        found = true;
162
162
                        if (script == NULL && (script = fopen(output_path, "w")) == NULL)
163
 
                                pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
163
                                pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
164
164
                        if (!db_used)
165
165
                        {
166
166
                                fprintf(script, "Database:  %s\n", active_db->db_name);
278
278
                        if (!check_mode)
279
279
                        {
280
280
                                if (script == NULL && (script = fopen(output_path, "w")) == NULL)
281
 
                                        pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
281
                                        pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
282
282
                                if (!db_used)
283
283
                                {
284
284
                                        fprintf(script, "\\connect %s\n\n",
398
398
                        if (!check_mode)
399
399
                        {
400
400
                                if (script == NULL && (script = fopen(output_path, "w")) == NULL)
401
 
                                        pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
401
                                        pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
402
402
                                if (!db_used)
403
403
                                {
404
404
                                        fprintf(script, "\\connect %s\n",
523
523
                        if (!check_mode)
524
524
                        {
525
525
                                if (script == NULL && (script = fopen(output_path, "w")) == NULL)
526
 
                                        pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
526
                                        pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
527
527
                                if (!db_used)
528
528
                                {
529
529
                                        fprintf(script, "\\connect %s\n",
648
648
                        found = true;
649
649
 
650
650
                        if (script == NULL && (script = fopen(output_path, "w")) == NULL)
651
 
                                pg_log(PG_FATAL, "Could not create necessary file:  %s\n", output_path);
 
651
                                pg_log(PG_FATAL, "could not create necessary file:  %s\n", output_path);
652
652
                        if (!db_used)
653
653
                        {
654
654
                                fprintf(script, "\\connect %s\n\n",