pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chenyanfei <postgresql_2016@163.com>
To: pgsql-bugs@postgresql.org
Subject: syslogger file descriptor question
Date: Thu, 29 Apr 2021 19:04:05 -0700 (MST)
Message-ID: <1619748245262-0.post@n3.nabble.com> (raw)

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





view thread (3+ messages)  latest in thread

Message-ID: <1619748245262-0.post@n3.nabble.com>
Permalink:  ../1619748245262-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1619748245262-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: postgresql_2016@163.com
  Subject: Re: syslogger file descriptor question
  In-Reply-To: <1619748245262-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox