postgres.git / summary / log / commit / refs
commit a0efc714531d3dfd02fafd39e80d058cef6703b0
Author: Bruce Momjian <bruce@momjian.us>
Date: Wed Apr 01 22:25:45 2015 +0000
First released in: 9.5.0
pg_upgrade: call 'postgres' binary to get data directory location
This matches the binary 'pg_ctl' calls. Previously we called the
'postmaster'.
Report by Christoph Berg
contrib/pg_upgrade/option.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/pg_upgrade/option.c b/contrib/pg_upgrade/option.c
index 9b387be21d7..742d133e391 100644
--- a/contrib/pg_upgrade/option.c
+++ b/contrib/pg_upgrade/option.c
@@ -415,7 +415,7 @@ adjust_data_dir(ClusterInfo *cluster)
* so this might fail --- only works for PG 9.2+. If this fails,
* pg_upgrade will fail anyway because the data files will not be found.
*/
- snprintf(cmd, sizeof(cmd), "\"%s/postmaster\" -D \"%s\" -C data_directory",
+ snprintf(cmd, sizeof(cmd), "\"%s/postgres\" -D \"%s\" -C data_directory",
cluster->bindir, cluster->pgconfig);
if ((output = popen(cmd, "r")) == NULL ||
[parent: 89840d7d3fa9]