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:16:31
Message-ID: 1619748991620-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

When use the pg_ctl start -l command to start the postgres, I find the
syslogger process point to the specified log file.

With long time running, the log file is too big. So we delete it, but the fd
is show as deleted.

It looks like the file descriptor leak. Although this problem has little
impact, it brings troubles to customers.
The regular file has the rotate mechanism, so it can close the old fd and
reopen the new file.

My question is if I specify them to /dev/null whether have any problem. I
find one process do this not in first start.

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Noah Misch 2021-04-30 03:15:01 Re: BUG #16939: Plural interval for negative singular
Previous Message chenyanfei 2021-04-30 02:04:05 syslogger file descriptor question