Re: Incomplete Startup Packet on startup and when pg_maintenance --analyze runs in cron

From: "John Lister" <john(dot)lister-ps(at)kickstone(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Incomplete Startup Packet on startup and when pg_maintenance --analyze runs in cron
Date: 2008-12-20 08:26:46
Message-ID: E68310A7222D4261AE7E96703FA775F7@squarepi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>Looks like /etc/cron.d/postgresql-common
># Run VACUUM ANALYSE on all databases every 5 hours if pg_autovacuum is not
># running
>2 0,5,10,15,20 * * 1-6 root if [ -x /usr/sbin/pg_maintenance ]; then
>/usr/sbin/pg_maintenance --analyze >/dev/null; fi
>Is deprecated for postgresql versions 8.1 and higher and needs to be
>commented out by default in those packages.

The pg_maintenance scripts check the state of the autovacuuum flag in the
postgres config files. If it is enabled they simply quit and don't do
anything. Disabling autovacuum causes them to run... So you can leave them
uncommented...

Although why it causes the "Incomplete start-up packet" messages is a
mystery...

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jennifer Redman 2008-12-20 20:32:17 Re: Incomplete Startup Packet on startup and when pg_maintenance --analyze runs in cron
Previous Message Tom Lane 2008-12-20 04:02:16 Re: Migration \ OID question