Skip site navigation (1) Skip section navigation (2)

Fwd: Default pg_autovacuum config glitches

From: Martin Pitt <martin(at)piware(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Cc: 225680(at)bugs(dot)debian(dot)org
Subject: Fwd: Default pg_autovacuum config glitches
Date: 2004-03-25 15:08:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Hi PostgreSQL hackers!

A while ago we received the bug report below against pg_autovacuum.
Since it runs as a daemon, it should detach from its controlling
terminal by executing sth like

        int nullfd = open("/dev/null", O_RDWR);
        dup2(nullfd, 0);
        dup2(nullfd, 1);
        dup2(nullfd, 2);
        if (nullfd != 0 && nullfd != 1 && nullfd != 2)

(taken from syslog-ng which does it properly).

Can you do that in the next release?

Thanks in advance and have a nice day!


----- Forwarded message from sacrificial-spam-address(at)horizon(dot)com -----

Date: 31 Dec 2003 15:02:22 -0000
From: sacrificial-spam-address(at)horizon(dot)com
To: submit(at)bugs(dot)debian(dot)org
Subject: Default pg_autovacuum config glitches
X-Spam-Status: No, hits=-3.8 required=4.0 tests=HAS_PACKAGE,NO_REAL_NAME 

Package: postgresql
Version: 7.4.1-1

When /etc/init.d/postgresql is run, pg_autovacuum maintains connections
to the startup tty on fds 0, 1 and 2.  When run from the console (as part
of (apt-get upgrade), this caused some hiccups to a following getty.

In any case, it's considered bad behaviour on the part of a long-running

(If you feel this is pg_autovacuum's fault rather than the init script's,
please reassign to postgresql-contrib.)


----- End forwarded message -----

Martin Pitt                 Debian GNU/Linux Developer
martin(at)piware(dot)de                      mpitt(at)debian(dot)org   


pgsql-bugs by date

Next:From: Bruce MomjianDate: 2004-03-25 21:51:30
Subject: Re: Fwd: Infinite recursion in function causes DoS
Previous:From: Martin PittDate: 2004-03-25 11:25:33
Subject: Fwd: Infinite recursion in function causes DoS

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group