git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a49f6ad)
Fix pg_ctl -D handling for Win32:
2004年10月15日 04:54:33 +0000 (04:54 +0000)
2004年10月15日 04:54:33 +0000 (04:54 +0000)
C:\msys1円.0\home\y-asaba>pg_ctl -D data restart
waiting for postmaster to shut down...LOG: received smart shutdown
request.
LOG: shutting down
LOG: database system is shut down
done
postmaster stopped

postmaster starting

C:\msys1円.0\home\y-asaba>postmaster.exe: invalid argument: "'-D'"
Try "postmaster.exe --help" for more information.

Yoshiyuki Asaba


diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 96503e0a81854fea0901497ce44ecb885893c689..e3361738ed5fa7f48741c31199c68bfeffdc4333 100644 (file)
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.433 2004年10月14日 20:23:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.434 2004年10月15日 04:54:31 momjian Exp $
*
* NOTES
*
@@ -3301,7 +3301,7 @@ CreateOptsFile(int argc, char *argv[], char *fullprogname)
fprintf(fp, "%s", fullprogname);
for (i = 1; i < argc; i++)
- fprintf(fp, " '%s'", argv[i]);
+ fprintf(fp, " %s%s%s", SYSTEMQUOTE, argv[i], SYSTEMQUOTE);
fputs("\n", fp);
if (fclose(fp))
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 7f9ac2f468d0b5e211d92b0d47c4b8af4d59bc50..9c87b3971515d8e49733869ee6dcc8224e182c32 100644 (file)
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.37 2004年10月15日 04:32:14 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.38 2004年10月15日 04:54:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -501,7 +501,7 @@ do_start(void)
{
char *arg1;
- arg1 = strchr(optline, '\'');
+ arg1 = strchr(optline, *SYSTEMQUOTE);
if (arg1 == NULL || arg1 == optline)
post_opts = "";
else
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /