Skip site navigation (1) Skip section navigation (2)

Fix pg_ctl restart bug

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Fix pg_ctl restart bug
Date: 2008-06-26 02:47:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
We document 'pg_ctl restart' to preserve any command-line arguments
passed when the server was started:

    Restarting the server is almost equivalent to stopping the
    server and starting it again except that <command>pg_ctl</command>
    saves and reuses the command line options that were passed
    to the previously running instance.  To restart

However, as of 2004-10-15, this has not worked.  :-(  The attached patch
is the one that caused the bug --- on non-Unix systems, SYSTEMQUOTE is
"", meaning zero-length string.  I should have seen the bug when I
applied the contributed patch in 2004.

The second attached applied patch fixes the problem.

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

Attachment: /rtmp/diff2
Description: text/x-diff (1.4 KB)
Attachment: /rtmp/diff
Description: text/x-diff (2.7 KB)


pgsql-patches by date

Next:From: Tom LaneDate: 2008-06-26 03:38:11
Subject: Re: Fix pg_ctl restart bug
Previous:From: Bruce MomjianDate: 2008-06-26 01:12:09
Subject: Re: [BUGS] BUG #4128: The postmaster.opts.default file is begin ignored

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group