Re: Logging VACUUM activity

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: jao(at)geophile(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Logging VACUUM activity
Date: 2005-03-14 23:35:31
Message-ID: 1110843331.5230.5.camel@jd2.commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2005-03-14 at 17:12 -0500, jao(at)geophile(dot)com wrote:
> I'm using postgresql 7.4.6 on RH9. My application includes a
> long-running Java process responsible for database access. I'd like to
> have this Java process initiate a daily VACUUM and, one way or
> another, log VACUUM output.
>
> - Is there some way to get VACUUM output via JDBC?
>
> - If not, how can I get VACUUM output in the postgres logs? Setting
> log_min_error_statement to INFO doesn't seem to have any effect.

You can run the query vacuum verbose.

Sincerely,

Joshua D. Drake

>
> Jack Orenstein
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
--
Command Prompt, Inc., Your PostgreSQL solutions company. 503-667-4564
Custom programming, 24x7 support, managed services, and hosting
Open Source Authors: plPHP, pgManage, Co-Authors: plPerlNG
Reliable replication, Mammoth Replicator - http://www.commandprompt.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Miroslav Šulc 2005-03-14 23:52:26 Re: Problem with special character � on
Previous Message Scott Ribe 2005-03-14 23:35:00 Re: Best practices: Handling Daylight-saving time