diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-21 22:10:40 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-21 22:11:00 -0400 |
commit | efae4653c98fd201a8a723bceabf182a1005ac0f (patch) | |
tree | d0c9a2ba1ebd8979c97c8784840be1ca982d3be2 /src | |
parent | cdf8bcb8d93b4365f124e994c31687b39b619253 (diff) | |
download | postgresql-efae4653c98fd201a8a723bceabf182a1005ac0f.tar.gz postgresql-efae4653c98fd201a8a723bceabf182a1005ac0f.zip |
Update woefully-obsolete comment.
The accurate info about what's in a lock file has been in miscadmin.h
for some time, so let's just make this comment point there instead of
maintaining a duplicative copy.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/init/miscinit.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 51809b7a88a..0f734260c16 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -629,18 +629,10 @@ GetUserNameFromId(Oid roleid) * * These routines are used to create both a data-directory lockfile * ($DATADIR/postmaster.pid) and a Unix-socket-file lockfile ($SOCKFILE.lock). - * Both kinds of files contain the same info: - * - * Owning process' PID - * Data directory path - * - * By convention, the owning process' PID is negated if it is a standalone - * backend rather than a postmaster. This is just for informational purposes. - * The path is also just for informational purposes (so that a socket lockfile - * can be more easily traced to the associated postmaster). - * - * A data-directory lockfile can optionally contain a third line, containing - * the key and ID for the shared memory block used by this postmaster. + * Both kinds of files contain the same info initially, although we can add + * more information to a data-directory lockfile after it's created, using + * AddToDataDirLockFile(). See miscadmin.h for documentation of the contents + * of these lockfiles. * * On successful lockfile creation, a proc_exit callback to remove the * lockfile is automatically created. |