Re: vacuum

From: Chantal Ackermann <chantal(dot)ackermann(at)web(dot)de>
To: "Dave Cramer" <Dave(at)micro-automation(dot)net>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: vacuum
Date: 2002-03-11 09:22:21
Message-ID: 02031110222101.01002@guffert
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Maybe the reason why it worked not for me is, that I have used a
PreparedStatement?
I will try it with a Statement.

Thank you
Chantal

On Friday, 8. March 2002 18:16, Dave Cramer wrote:
> Chantal,
>
>
> I just tried it and it ran ok?
>
> con = getConnection();
> Statement st = con.createStatement();
> String sql = "vacuum analyze";
> st.execute(sql);
>
> This if from the logs
>
> ProcessQuery
> 2002-03-08 11:50:42 DEBUG: CommitTransactionCommand
> 2002-03-08 11:50:45 DEBUG: StartTransactionCommand
> 2002-03-08 11:50:45 DEBUG: query: vacuum analyze
> 2002-03-08 11:50:45 DEBUG: ProcessUtility: vacuum analyze
> 2002-03-08 11:50:45 DEBUG: --Relation pg_type--
> 2002-03-08 11:50:45 DEBUG: Index pg_type_oid_index: Pages 5; Tuples
> 144: Deleted 795.
> CPU 0.00s/0.02u sec elapsed 0.01 sec.
>
>
>
> Dave
>
>
>
> -----Original Message-----
> From: pgsql-jdbc-owner(at)postgresql(dot)org
> [mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Chantal Ackermann
> Sent: Friday, March 08, 2002 11:09 AM
> To: pgsql-jdbc(at)postgresql(dot)org
> Subject: [JDBC] vacuum
>
>
> hello all,
>
> I try to call VACUUM ANALYZE through a PreparedStatement. As the logfile
> only
> lists debug messages for VACUUM that I start in psql I suspect that the
> the
> VACUUM in my java app is never called.
>
> Prepared Statement prepVacuumAnalyze = con.prepareStatement( "VACUUM
> ANALYZE"
> );
> prepVacuumAnalyze.execute();
> con.commit(); // auto commit is off
>
> Is it not possible to call such SQL commands in jdbc?
>
> thank you
> Chantal
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

In response to

  • Re: vacuum at 2002-03-08 17:16:47 from Dave Cramer

Browse pgsql-jdbc by date

  From Date Subject
Next Message adr rrp pub 2002-03-11 10:12:44 PostgreSQL and Cocoa on Mac OS X
Previous Message Richard Emberson 2002-03-10 16:21:36 which JDBC driver