diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-27 19:01:15 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-27 19:01:15 +0000 |
commit | cab99ec300e45863464d964371ae88217cc0e5c4 (patch) | |
tree | bae2deeb3ae6a607e0d789a06ba7a998648a01bd /src | |
parent | 5e2707c45fb9ef4dd1250560a049265721b60907 (diff) | |
download | postgresql-cab99ec300e45863464d964371ae88217cc0e5c4.tar.gz postgresql-cab99ec300e45863464d964371ae88217cc0e5c4.zip |
Tweak initdb to reduce verbosity of progress messages, by printing just
one 'creating subdirectories' message instead of one per subdirectory.
The original decision to print something for each subdirectory was made
when there were only one or two of 'em; we have way too many now.
Per discussion.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/initdb/initdb.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 367b3083e0d..9399a531d9b 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -42,7 +42,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.106 2006/01/05 10:07:46 petere Exp $ + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.107 2006/01/27 19:01:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2738,18 +2738,17 @@ main(int argc, char *argv[]) } /* Create required subdirectories */ + printf(_("creating subdirectories ... ")); + fflush(stdout); for (i = 0; i < (sizeof(subdirs) / sizeof(char *)); i++) { - printf(_("creating directory %s/%s ... "), pg_data, subdirs[i]); - fflush(stdout); - if (!mkdatadir(subdirs[i])) exit_nicely(); - else - check_ok(); } + check_ok(); + /* Top level PG_VERSION is checked by bootstrapper, so make it first */ set_short_version(short_version, NULL); |