From: Niklas Johansson <spot@tele2.se>
To: Miguel Arroz <arroz@guiamac.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to check if VACUUM operations are working?
Date: Wed, 6 Sep 2006 12:37:34 +0200
Message-ID: <B3D993A5-7F4B-49AF-85C7-5FE02EC2B3DB@tele2.se> (raw)
In-Reply-To: <F5084123-32F1-4E92-B6BE-112C5E52719A@guiamac.com>
References: <F5084123-32F1-4E92-B6BE-112C5E52719A@guiamac.com>
On 6 sep 2006, at 01.07, Miguel Arroz wrote:
> I have PgSQL 8.0.* installed on a Mac OS X Server machine.
>
> I setup a LaunchDeamon to run a vacuum command every night. The
> problem is that LaunchDeamon still lacks some features, one of them
> is logging... so, I'm not entirely sure if the vacuum operations
> actually runs.
You can add the key 'StandardOutPath' to your launchd.plist file:
<key>StandardOutPath</key>
<string>/path/to/logfile</string>
You can also supply 'StandardErrorPath'.
This of course only works for commands that writes information to
stdout (or stderr). If not, or if the output is not directly suitable
for logging, it might be necessary to wrap the command in a script in
order to generate additional logging information, e.g. timestamp.
Sincerely,
Niklas Johansson
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: spot@tele2.se, arroz@guiamac.com
Subject: Re: How to check if VACUUM operations are working?
In-Reply-To: <B3D993A5-7F4B-49AF-85C7-5FE02EC2B3DB@tele2.se>
References: <F5084123-32F1-4E92-B6BE-112C5E52719A@guiamac.com> <B3D993A5-7F4B-49AF-85C7-5FE02EC2B3DB@tele2.se>
* 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