Re: Getting vacuum results - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Getting vacuum results
Date
Msg-id Pine.BSO.4.62.0509131712530.31592@leary.csoft.net
Whole thread Raw
In response to Getting vacuum results  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: Getting vacuum results
List pgsql-jdbc

On Thu, 1 Sep 2005, Joseph Shraibman wrote:

> If I run VACUUM VERBOSE from jdbc, how do I get the output?  There are no
> SQLWarnings attached to the resultset.
>

SQLWarnings are attached to the Statement because VACUUM does not produce
a query result.  The attached test case shows this working
fine for me.  The one complication is that vacuum puts out
some of its interesting information in the Detail: part of the
log message.  The JDBC driver doesn't normally put this
information into the warning message, so you must either
increase the loglevel URL parameter or use the 8.1 series and
write pg specific code to access the individual fields of the
ServerErrorMessage class.  We plan to increase the number of fields
used to construct the error string to include the Detail field, but
haven't gotten around to it yet.

Kris Jurka

Attachment

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: [ADMIN] ERROR: canceling query due to user request
Next
From: Joseph Shraibman
Date:
Subject: Re: Getting vacuum results