Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefae465

Browse files
committed
Update woefully-obsolete comment.
The accurate info about what's in a lock file has been in miscadmin.hfor some time, so let's just make this comment point there instead ofmaintaining a duplicative copy.
1 parentcdf8bcb commitefae465

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)

[8]ページ先頭

©2009-2025 Movatter.jp