Re: Run Vacuum Through JDBC

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Yan Cheng CHEOK <yccheok(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Run Vacuum Through JDBC
Date: 2010-05-11 07:12:11
Message-ID: 4BE9034B.2070008@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/05/10 13:38, Yan Cheng CHEOK 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();
>
> Nothing print out at console.
>
> I check at server status through pgadmin, also get no hint whether Vacuum operation had been executed.

That looks like Java / JDBC code.

If so - if executing the statement doesn't throw SQLException, then it
worked. Same as all other SQL.

--
Craig Ringer

Tech-related writing: http://soapyfrogs.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Hunsaker 2010-05-11 07:23:02 Re: initdb fails on Centos 5.4 x64
Previous Message Craig Ringer 2010-05-11 07:09:17 Re: peer-to-peer replication with Postgres