projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1135b8a
)
Recent patches to pg_ctl broke "pg_ctl restart" for the case where no
author
Tom Lane
<
[email protected]
>
Tue, 30 Sep 2008 13:14:21 +0000
(13:14 +0000)
committer
Tom Lane
<
[email protected]
>
Tue, 30 Sep 2008 13:14:21 +0000
(13:14 +0000)
command-line options had been given to the postmaster; and just plain
broke it altogether in 8.1 and 8.0. Per report from KaiGai Kohei.
src/bin/pg_ctl/pg_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_ctl/pg_ctl.c
b/src/bin/pg_ctl/pg_ctl.c
index 7844777362434d684c1d3f54d72478b0c64a43ad..4f8e834ceb41729be80d101d53795823ef5ae336 100644
(file)
--- a/
src/bin/pg_ctl/pg_ctl.c
+++ b/
src/bin/pg_ctl/pg_ctl.c
@@
-548,8
+548,13
@@
do_start(void)
*arg1 = '\0'; /* terminate so we get only program name */
post_opts = arg1 + 1; /* point past whitespace */
}
+ else
+ post_opts = "";
+#ifdef NOT_USED
+ /* this never actually worked pre-8.2 */
if (postgres_path == NULL)
postgres_path = optline;
+#endif
}
else
post_opts = optline;