Re: BUG #2239: "vacuumdb -a" remove freeze - Mailing list pgsql-bugs

From Olleg Samoylov
Subject Re: BUG #2239: "vacuumdb -a" remove freeze
Date
Msg-id 43E84E0E.5080605@mipt.ru
Whole thread Raw
In response to Re: BUG #2239: "vacuumdb -a" remove freeze  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #2239: "vacuumdb -a" remove freeze
List pgsql-bugs
Tom Lane wrote:
> "Olleg Samoylov" <olleg_s@mail.ru> writes:
>
>> Opps, template1 must not be vacuumed.
>
>
> Says who?
>
> If we didn't vacuum template1 then it would be subject to XID
> wraparound problems, unless it had never been modified, which is
> something vacuumdb can't count on.

template1 frozen by "vacuum freeze", thus can't be subject of XID
wraparound problems, isn't it?

man vacuum:
> If this is done when there are no other open transactions in the same
>  database, then  it  is  guaranteed  that  all  tuples in  the
> database  are  ‘‘frozen’’  and  will  not  be subject to transaction
> ID wraparound problems, no matter how long the database  is  left
> unvacuumed.

IMHO "vacuumdb -a" must don't vacuum database with
datvacuumxid=datfrozenxid.

--
Olleg Samoylov

pgsql-bugs by date:

Previous
From: James William Pye
Date:
Subject: Re: BUG #2240: length() with geometric types
Next
From: "Nikolay Samokhvalov"
Date:
Subject: BUG #2245: pg_dump doesn't dump expressions with sequence in DEFAULT setting for some column in table