Re: Lots of junk on my console - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Lots of junk on my console
Date
Msg-id Pine.BSO.4.64.0703291711450.27198@leary.csoft.net
Whole thread Raw
In response to Re: Lots of junk on my console  (Joseph S <jks@selectacast.net>)
Responses Re: Lots of junk on my console
List pgsql-jdbc

On Thu, 29 Mar 2007, Joseph S wrote:

> Joseph S wrote:
>> I append ?loglevel=1 to the db connection urls I use for running VACUUM
>> commands.  Would that set the logwriter?
>>
> Actually I see that it does.  The comment in AbstractJdbc2Connection reads:
>
>        // Read loglevel arg and set the loglevel based on this value;
>        // In addition to setting the log level, enable output to
>        // standard out if no other printwriter is set
>
> So I guess I have to set it back to null each time I create a db connection.
>

Perhaps you should avoid using loglevel=1 if you don't want any logging
output.  If you want to get VACUUM details that should be available in a
SQLWarning attached to the statement and should be easier to put where you
want than something that is dumped to stdout.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Joseph S
Date:
Subject: Re: Lots of junk on my console
Next
From: Kris Jurka
Date:
Subject: Re: problems with plan invalidation