Re: pg_ctl restart failed on Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Yoshiyuki Asaba <y-asaba(at)sra(dot)co(dot)jp>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_ctl restart failed on Win32
Date: 2004-10-15 04:54:28
Message-ID: 200410150454.i9F4sSp18459@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Yoshiyuki Asaba wrote:
> Hi,
>
> I tried to execute "pg_ctl -D data restart" on Windows XP, but I got
> the following message:
>
> C:\msys\1.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:\msys\1.0\home\y-asaba>postmaster.exe: invalid argument: "'-D'"
> Try "postmaster.exe --help" for more information.
>
>
> Attache patches for this problem.
>
> --
> Yoshiyuki Asaba
> y-asaba(at)sra(dot)co(dot)jp
>
>

> --- postmaster.c.orig Sun Aug 29 14:06:46 2004
> +++ postmaster.c Mon Sep 6 15:43:42 2004
> @@ -3366,7 +3366,7 @@
>
> 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))

> --- pg_ctl.c.orig Sun Aug 29 14:06:53 2004
> +++ pg_ctl.c Mon Sep 6 17:17:32 2004
> @@ -488,7 +488,7 @@
> {
> char *arg1;
>
> - arg1 = strchr(optline, '\'');
> + arg1 = strchr(optline, *SYSTEMQUOTE);
> if (arg1 == NULL || arg1 == optline)
> post_opts = "";
> else

>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-10-15 05:02:32 Re: psql \set case sensitive for boolean (OFF/off)
Previous Message Abhijit Menon-Sen 2004-10-15 01:50:18 Re: libpq and prepared statements progress for 8.0