pg_ctl using START with paths needing quotes

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: pg_ctl using START with paths needing quotes
Date: 2004-06-11 01:00:40
Message-ID: 200406110100.i5B10eG14036@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

This applied patch changes the way pg_ctl starts on Win32.

Using START, it is not possible to quote the executable name, who's
directory might have spaces:

START /B /program files/x.exe

The fix is to create a temporary batch file in C:\ containing:

/program files/x.exe

and run START with the batch name:

START /B C:\PG_CTL_323223.BAT

then unlink the batch file.

--
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

Attachment Content-Type Size
unknown_filename text/plain 2.6 KB

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-06-11 03:23:45 Re: [pgsql-hackers-win32] Tablespaces
Previous Message Dann Corbit 2004-06-11 00:36:46 Re: [pgsql-hackers-win32] Tablespaces

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-06-11 01:16:45 Re: delayed planning of unnamed statements
Previous Message Bruce Momjian 2004-06-10 21:57:33 Re: [PATCHES] serverlog function (log_destination file)