model-writtenrun 9600 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Haribabu Kommi reported that restrictive log_file_mode permissions on current_logfiles could break group-access backups even with logs outside the data directory, and proposed using ordinary data-file permissions in #1.
- Michael Paquier initially suggested excluding the metadata file from backups in #2, while Tom Lane argued for matching log-file access and then proposed moving it into the log directory in #4 and #5.
- Stephen Frost supported treating current_logfiles as metadata rather than a log file in #7; discussion with Tom Lane in #8 and #9 questioned its user-facing role, while both sides resisted adding configuration complexity.
- Haribabu Kommi opened a separate documentation effort in #10, then revised it in #15 after Michael Paquier recommended describing 0640 as compatible with group access instead of rewriting the defaults in #14.
- Haribabu Kommi explored replacing the file with shared memory but found that syslogger did not attach to it, and instead posted a relocation implementation in #16; Michael Paquier explained that syslogger survives shared-memory resets in #17.
- Robert Haas rejected relocation because it weakened discovery and caused collisions when clusters shared a log directory, advocating the original permissions fix in #18; Michael Paquier accepted that direction in #19.
- Haribabu Kommi revised the documentation again in #20 but emphasized that a recommendation could not resolve deployments deliberately using restrictive log permissions; this documentation work is absent from the supplied commit, and the thread records no landing for it.
- Michael Paquier identified a race in the original chmod approach in #21, prompting Haribabu Kommi's umask revision in #22 and immediate correction of the mask argument in #23.
- Michael Paquier supplied a simpler complete revision restoring umask immediately after fopen() in #24, and Haribabu Kommi confirmed that it worked in #25.
- Michael Paquier committed 276d2e6c2d from #24, adding line buffering and Windows text-mode handling to preserve logfile_open() behavior, and reported the backpatch through PostgreSQL 11 in #27.
- Michael Paquier noted that the change also eliminated duplicate file-creation error messages but declined a PostgreSQL 10 fix for that cosmetic issue in #28; Haribabu Kommi closed the thread by confirming the benefit for restrictive log permissions with group-access data directories in #29.