mirror of
https://github.com/postgres/postgres.git
synced 2025-12-15 02:22:24 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user