Re: Bug in autovacuum.c? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Bug in autovacuum.c?
Date
Msg-id AANLkTinDsZSK_weu4EdRLWCBMve7aMnX=BdN9ar7dsic@mail.gmail.com
Whole thread Raw
In response to Re: Bug in autovacuum.c?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Bug in autovacuum.c?
List pgsql-hackers
On Thu, Mar 31, 2011 at 5:59 PM, Bruce Momjian <bruce@momjian.us> wrote:
> OK, just keep going below 100:
>
>        105 -> 5
>        104 -> 4
>        103 -> 3
>        102 -> max_xid
>        101 -> max_xid - 1
>        100 -> max_xid - 2
>         99 -> max_id
>         98 -> max_id -1
>
> Wouldn't you rather:
>
>        105 -> 5
>        104 -> 4
>        103 -> 3
>        102 -> 3
>        101 -> 3
>        100 -> 3
>         99 -> max_id
>         98 -> max_id -1

Oh, quite right.  Sorry I missed that.  I suppose if we wanted to fix
this for real, we'd want to get:

105->5
104->4
103->3
102->max_xid
101->max_xid-1
100->max_xid-2
99->max_xid-3
98->max_xid-4

But it doesn't seem worth getting excited about.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Rushabh Lathia
Date:
Subject: Re: edb-postgres.exe has encountered a problem on windows
Next
From: Robert Haas
Date:
Subject: Re: corner case about replication and shutdown