Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: 8.1.8 autov...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 19 Topic 4951 of 5419
Post > Topic >>

Re: 8.1.8 autovacuum missing databases

by tgl@[EMAIL PROTECTED] (Tom Lane) May 2, 2008 at 12:40 PM

Alvaro Herrera <alvherre@[EMAIL PROTECTED]
> writes:
> I'm wondering if there could be a hidden bug in the age arithmetic
> somehow -- say because it's using unsigned comparison of signed
> variables, or the Max() macro is flawed, or something weird like that.

Umm ... actually, there's a bug in the hand calculations I did at the
start of this thread.  The threshold that 8.1 uses is

                         (int32) ((MaxTransactionId >> 3) * 3 - 100000)

which works out to 1610512733, which is considerably more than the 300M
or so age() values that Ian is showing.  I had somehow convinced myself
that it was less and he should be getting whole-db vacuums, but in
reality he shouldn't yet.  It's only in 8.2 and up that we have a much
smaller threshold for trying to advance datfrozenxid.

So actually, what we are looking at is the not-whole-db logic, and
it's working exactly as designed.  The only unexpected behavior was
the choice not to vacuum some of the DBs, which we now know is explained
by their having a last_autovac_time in the future.

Perhaps it is worth adding a defense to autovac to not believe last
autovac times that are in the future, since the system clock is not
under our control and could go backwards.  Other than that I don't
think there's any bug here.

			regards, tom lane

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 19 Posts in Topic:
8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-04-29 16:02:53 
Re: 8.1.8 autovacuum missing databases
alvherre@[EMAIL PROTECTED  2008-04-29 16:33:35 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-04-29 17:05:03 
Re: 8.1.8 autovacuum missing databases
alvherre@[EMAIL PROTECTED  2008-04-29 17:12:44 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-04-30 09:02:26 
Re: 8.1.8 autovacuum missing databases
alvherre@[EMAIL PROTECTED  2008-04-30 12:19:42 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-04-30 12:27:49 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-04-30 13:01:48 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-04-30 13:07:13 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-04-30 13:28:08 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-04-30 16:43:57 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-05-01 09:01:22 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-05-01 09:57:28 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-05-02 12:40:58 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-05-02 12:45:07 
Re: 8.1.8 autovacuum missing databases
ajs@[EMAIL PROTECTED] (A  2008-05-02 15:52:11 
Re: 8.1.8 autovacuum missing databases
tgl@[EMAIL PROTECTED] (T  2008-05-02 16:18:17 
Re: 8.1.8 autovacuum missing databases
ajs@[EMAIL PROTECTED] (A  2008-05-02 16:41:52 
Re: 8.1.8 autovacuum missing databases
ianw@[EMAIL PROTECTED] (  2008-05-01 13:58:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 10:40:20 CDT 2008.