Re: Run Vacuum Through JDBC - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Run Vacuum Through JDBC
Date
Msg-id AANLkTilIv9L9KolOItSkYeEvA2rVPi2COy9WvaWrqsWb@mail.gmail.com
Whole thread Raw
In response to Run Vacuum Through JDBC  (Yan Cheng CHEOK <yccheok@yahoo.com>)
List pgsql-general
On Mon, May 10, 2010 at 11:38 PM, Yan Cheng CHEOK <yccheok@yahoo.com> wrote:
> I was wondering, how can I check whether Vacuum operation had been executed without problem?
>
> I use the following Java code to execute Vacuum operation
>
> final Statement st2 = connection.createStatement();
> st2.executeUpdate("VACUUM FULL ANALYZE VERBOSE");
> st2.close();

On a side note, unless you have extenuating circumstances, vacuum is
preferred over vacuum full.  If you must run vacuum full, pay
attention to possible index bloating.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Moving postgresql data to another computer
Next
From: "Gauthier, Dave"
Date:
Subject: Pulling data from a constraint def