niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » PostgreSQL
Logging VACUUM activity
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Jack Orenstein
*nix forums beginner


Joined: 15 Mar 2005
Posts: 27

PostPosted: Tue Mar 15, 2005 1:37 am    Post subject: Re: Logging VACUUM activity Reply with quote

Joshua D. Drake wrote:
Quote:
On Mon, 2005-03-14 at 17:12 -0500, jao@geophile.com wrote:

I'm using postgresql 7.4.6 on RH9. My application includes a
long-running Java process responsible for database access. I'd like to
have this Java process initiate a daily VACUUM and, one way or
another, log VACUUM output.

- Is there some way to get VACUUM output via JDBC?

- If not, how can I get VACUUM output in the postgres logs? Setting
log_min_error_statement to INFO doesn't seem to have any effect.


You can run the query vacuum verbose.

I tried that. Whether I issue the VACUUM VERBOSE call through JDBC
or psql, I don't see anything in the postgres log file at all, even
with log_min_error_statement set to info.

In psql, I see the VACUUM VERBOSE output in the psql session itself,
but I need to log the output. I could spawn a psql session if necessary,
but ideally I'd just run VACUUM VERBOSE from JDBC and get the output
in the postgres log file.

Jack Orenstein

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Back to top
Joshua D. Drake
*nix forums Guru


Joined: 09 Mar 2005
Posts: 341

PostPosted: Mon Mar 14, 2005 10:35 pm    Post subject: Re: Logging VACUUM activity Reply with quote

On Mon, 2005-03-14 at 17:12 -0500, jao@geophile.com wrote:
Quote:
I'm using postgresql 7.4.6 on RH9. My application includes a
long-running Java process responsible for database access. I'd like to
have this Java process initiate a daily VACUUM and, one way or
another, log VACUUM output.

- Is there some way to get VACUUM output via JDBC?

- If not, how can I get VACUUM output in the postgres logs? Setting
log_min_error_statement to INFO doesn't seem to have any effect.

You can run the query vacuum verbose.

Sincerely,

Joshua D. Drake


Quote:

Jack Orenstein


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
--

Command Prompt, Inc., Your PostgreSQL solutions company. 503-667-4564
Custom programming, 24x7 support, managed services, and hosting
Open Source Authors: plPHP, pgManage, Co-Authors: plPerlNG
Reliable replication, Mammoth Replicator - http://www.commandprompt.com/


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Back to top
Guest






PostPosted: Mon Mar 14, 2005 9:12 pm    Post subject: Logging VACUUM activity Reply with quote

I'm using postgresql 7.4.6 on RH9. My application includes a
long-running Java process responsible for database access. I'd like to
have this Java process initiate a daily VACUUM and, one way or
another, log VACUUM output.

- Is there some way to get VACUUM output via JDBC?

- If not, how can I get VACUUM output in the postgres logs? Setting
log_min_error_statement to INFO doesn't seem to have any effect.

Jack Orenstein


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 7:54 am | All times are GMT
navigation Forum index » Databases » PostgreSQL
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Filtering logging, don't log monitor station Tory M Blue Postfix 1 Thu Jul 20, 2006 6:07 pm
No new posts logging control alexis Exim 0 Wed Jul 19, 2006 7:02 pm
No new posts VACUUM and index DANTE Alexandra PostgreSQL 3 Wed Jul 19, 2006 1:03 pm
No new posts smtp_accept_max and smtp_accept_max_per_host logging Marten Lehmann Exim 1 Tue Jul 18, 2006 7:37 pm
No new posts Database or table level logging? David Felio MySQL 5 Tue Jul 18, 2006 6:57 pm

Loans | Sudoku Software | Personal Loans | Loans and Credit Cards | Unsecured Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2289s ][ Queries: 20 (0.1174s) ][ GZIP on - Debug on ]