diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-01-13 19:01:28 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-01-13 19:01:28 -0500 |
commit | 52948169bcddf443b76d6ff1806259b153a2ac04 (patch) | |
tree | 9582d9be324ed653a88b63688f5e7073d3329ccf /src/backend/port/ipc_test.c | |
parent | f0f36045b2e3d037bb7647d84373404fa4ba9588 (diff) | |
download | postgresql-52948169bcddf443b76d6ff1806259b153a2ac04.tar.gz |
Code review for postmaster.pid contents changes.
Fix broken test for pre-existing postmaster, caused by wrong code for
appending lines to the lockfile; don't write a failed listen_address
setting into the lockfile; don't arbitrarily change the location of the
data directory in the lockfile compared to previous releases; provide more
consistent and useful definitions of the socket path and listen_address
entries; avoid assuming that pg_ctl has the same DEFAULT_PGSOCKET_DIR as
the postmaster; assorted code style improvements.
Diffstat (limited to 'src/backend/port/ipc_test.c')
-rw-r--r-- | src/backend/port/ipc_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/port/ipc_test.c b/src/backend/port/ipc_test.c index 2518007c4b..b4bcf40a7a 100644 --- a/src/backend/port/ipc_test.c +++ b/src/backend/port/ipc_test.c @@ -104,7 +104,7 @@ on_exit_reset(void) } void -AddToLockFile(int target_line, const char *str) +AddToDataDirLockFile(int target_line, const char *str) { } @@ -135,7 +135,7 @@ errcode_for_file_access(void) bool errstart(int elevel, const char *filename, int lineno, - const char *funcname) + const char *funcname, const char *domain) { return (elevel >= ERROR); } |