Unix Technical Forum

transactoin id wraparound problem

This is a discussion on transactoin id wraparound problem within the pgsql Admins forums, part of the PostgreSQL category; --> Hi I get error messages on the console that says .. WARNING: database "xxx" must be vacuumed within 10094646 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:35 AM
Sriram Dandapani
 
Posts: n/a
Default transactoin id wraparound problem

Hi



I get error messages on the console that says

..

WARNING: database "xxx" must be vacuumed within 10094646 transactions



I shutdown, restart pg and issue a vacuumdb -f <database>



I still get messages saying database must be vacuumed and the
transaction count keeps decreasing. Is vacuumdb -f not working for some
reason?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:35 AM
Andrew Sullivan
 
Posts: n/a
Default Re: transactoin id wraparound problem

On Tue, Sep 05, 2006 at 10:45:40PM -0700, Sriram Dandapani wrote:
> WARNING: database "xxx" must be vacuumed within 10094646 transactions
>
>
>
> I shutdown, restart pg and issue a vacuumdb -f <database>


-f does _not_ mean "vacuum all databases". It means "do VACUUM
FULL". These aren't the same thing. My bet is what you need is

vacuumdb -a

You've probably missed a database you don't know is there.

A


--
Andrew Sullivan | ajs@crankycanuck.ca
Everything that happens in the world happens at some place.
--Jane Jacobs

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 07:35 AM
Tom Lane
 
Posts: n/a
Default Re: transactoin id wraparound problem

"Sriram Dandapani" <sdandapani@counterpane.com> writes:
> I get error messages on the console that says
> WARNING: database "xxx" must be vacuumed within 10094646 transactions


> I shutdown, restart pg and issue a vacuumdb -f <database>


The shutdown/restart was a waste of typing, and -f doesn't really help
here either.

> I still get messages saying database must be vacuumed and the
> transaction count keeps decreasing.


I'll bet a nickel you did not run the vacuum as superuser. It has to be
done by a superuser to have permission to vacuum every table in the
database (including system catalogs).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 07:35 AM
alex.cotarlan@thomson.com
 
Posts: n/a
Default Re: transactoin id wraparound problem

What exactly permissions are required to vacuum every table including
system catalogs ?

Thanks , -alex

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailtogsql-admin-owner@postgresql.org] On Behalf Of Tom Lane
Sent: Wednesday, September 06, 2006 9:41 AM
To: Sriram Dandapani
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] transactoin id wraparound problem

"Sriram Dandapani" <sdandapani@counterpane.com> writes:
> I get error messages on the console that says
> WARNING: database "xxx" must be vacuumed within 10094646 transactions


> I shutdown, restart pg and issue a vacuumdb -f <database>


The shutdown/restart was a waste of typing, and -f doesn't really help
here either.

> I still get messages saying database must be vacuumed and the
> transaction count keeps decreasing.


I'll bet a nickel you did not run the vacuum as superuser. It has to be
done by a superuser to have permission to vacuum every table in the
database (including system catalogs).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:26 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com