Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcab99ec

Browse files
committed
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 madewhen there were only one or two of 'em; we have way too many now.Per discussion.
1 parent5e2707c commitcab99ec

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.106 2006/01/05 10:07:46 petere Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.107 2006/01/27 19:01:15 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -2738,18 +2738,17 @@ main(int argc, char *argv[])
27382738
}
27392739

27402740
/* Create required subdirectories */
2741+
printf(_("creating subdirectories ... "));
2742+
fflush(stdout);
27412743

27422744
for (i=0;i< (sizeof(subdirs) /sizeof(char*));i++)
27432745
{
2744-
printf(_("creating directory %s/%s ... "),pg_data,subdirs[i]);
2745-
fflush(stdout);
2746-
27472746
if (!mkdatadir(subdirs[i]))
27482747
exit_nicely();
2749-
else
2750-
check_ok();
27512748
}
27522749

2750+
check_ok();
2751+
27532752
/* Top level PG_VERSION is checked by bootstrapper, so make it first */
27542753
set_short_version(short_version,NULL);
27552754

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp