pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to check if VACUUM operations are working?
2+ messages / 2 participants
[nested] [flat]
* How to check if VACUUM operations are working?
@ 2006-09-05 23:07 Miguel Arroz <arroz@guiamac.com>
2006-09-06 10:37 ` Re: How to check if VACUUM operations are working? Niklas Johansson <spot@tele2.se>
0 siblings, 1 reply; 2+ messages in thread
From: Miguel Arroz @ 2006-09-05 23:07 UTC (permalink / raw)
To: pgsql-admin
Hi!
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.
Is there any way to "ask" the database about it's status, related
to vacuum, like when was it vacuumed last time, or some other info
that may assure the script is running fine.
Yours
Miguel Arroz
"GUERRA E' PAZ
LIBERDADE E' ESCRAVIDAO
IGNORANCIA E' FORCA" -- 1984
Miguel Arroz
http://www.ipragma.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to check if VACUUM operations are working?
2006-09-05 23:07 How to check if VACUUM operations are working? Miguel Arroz <arroz@guiamac.com>
@ 2006-09-06 10:37 ` Niklas Johansson <spot@tele2.se>
0 siblings, 0 replies; 2+ messages in thread
From: Niklas Johansson @ 2006-09-06 10:37 UTC (permalink / raw)
To: Miguel Arroz <arroz@guiamac.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-09-06 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-09-05 23:07 How to check if VACUUM operations are working? Miguel Arroz <arroz@guiamac.com>
2006-09-06 10:37 ` Niklas Johansson <spot@tele2.se>
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