syslogger file descriptor question

From: chenyanfei <postgresql_2016(at)163(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: syslogger file descriptor question
Date: 2021-04-30 02:04:05
Message-ID: 1619748245262-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

When I start the postgres with -l parameter, I find the logger process
redirect to the specified log file.

The fd:1 and fd:2 point to the log file. And If we delete the file because
of the file is too big, it'll be shown as the deleted file, which cause file
descriptor leak.

When I delete the regular file, it will close the old file and reopen the
new file when rotate the log file.

Although this problem is not very serious, it has caused a lot of confusion
to our customers. So I think
if I redirect all to /dev/null whether have any problems.

--
Sent from: https://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html

Browse pgsql-bugs by date

  From Date Subject
Next Message chenyanfei 2021-04-30 02:16:31 syslogger file descriptor question
Previous Message Bruce Momjian 2021-04-30 01:00:04 Re: BUG #16939: Plural interval for negative singular