Skip to content

Commit efae465

Browse files
committed
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.
1 parent cdf8bcb commit efae465

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/backend/utils/init/miscinit.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -629,18 +629,10 @@ GetUserNameFromId(Oid roleid)
629629
*
630630
* These routines are used to create both a data-directory lockfile
631631
* ($DATADIR/postmaster.pid) and a Unix-socket-file lockfile ($SOCKFILE.lock).
632-
* Both kinds of files contain the same info:
633-
*
634-
* Owning process' PID
635-
* Data directory path
636-
*
637-
* By convention, the owning process' PID is negated if it is a standalone
638-
* backend rather than a postmaster. This is just for informational purposes.
639-
* The path is also just for informational purposes (so that a socket lockfile
640-
* can be more easily traced to the associated postmaster).
641-
*
642-
* A data-directory lockfile can optionally contain a third line, containing
643-
* the key and ID for the shared memory block used by this postmaster.
632+
* Both kinds of files contain the same info initially, although we can add
633+
* more information to a data-directory lockfile after it's created, using
634+
* AddToDataDirLockFile(). See miscadmin.h for documentation of the contents
635+
* of these lockfiles.
644636
*
645637
* On successful lockfile creation, a proc_exit callback to remove the
646638
* lockfile is automatically created.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy