Created attachment 237789 [details] Patch Depend on mountlate, as some filesystems used by postgresql server may be mounted late. My case: /tmp is late-mounted tmpfs atop of ZFS, and without this patch postgres starts before the filesystem is mounted and its socket is lost.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d512e8cce2abc9375784bc1dc4c91d5353e867a0 commit d512e8cce2abc9375784bc1dc4c91d5353e867a0 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2022-05-17 10:49:50 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-11-15 15:40:59 +0000 databases/postgresql*-server: require mountlate in rc.d scripts PostgreSQL server may use late-mounted filesystems, so require these in rc.d scripts. Real life example is when /tmp is late-mounted tmpfs atop of ZFS, and if posgresql-server starts before mountlate, its socket which resides on /tmp is hidden under tmpfs which is mounted afterwards. PR: 267500 Approved by: maintainer timeout (pgsql, 2 weeks) databases/postgresql10-server/Makefile | 2 +- databases/postgresql10-server/files/postgresql.in | 2 +- databases/postgresql11-server/Makefile | 2 +- databases/postgresql11-server/files/postgresql.in | 2 +- databases/postgresql12-server/Makefile | 2 +- databases/postgresql12-server/files/postgresql.in | 2 +- databases/postgresql13-server/Makefile | 2 +- databases/postgresql13-server/files/postgresql.in | 2 +- databases/postgresql14-server/Makefile | 2 +- databases/postgresql14-server/files/postgresql.in | 2 +- databases/postgresql15-server/Makefile | 2 +- databases/postgresql15-server/files/postgresql.in | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-)