dbTalk Databases Forums  

[BUGS] BUG #2241: "vacuumdb -a" remove freeze

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2241: "vacuumdb -a" remove freeze in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Olleg Samoylov
 
Posts: n/a

Default [BUGS] BUG #2241: "vacuumdb -a" remove freeze - 02-06-2006 , 08:59 AM







The following bug has been logged online:

Bug reference: 2241
Logged by: Olleg Samoylov
Email address: olleg (AT) mipt (DOT) ru
PostgreSQL version: 8.1
Operating system: Linux (debian-amd64)
Description: "vacuumdb -a" remove freeze
Details:

template1=# select version();
version

----------------------------------------------------------------------------
------------------------------------
PostgreSQL 8.1.0 on x86_64-pc-linux-gnu, compiled by GCC cc (GCC) 4.0.3
20051111 (prerelease) (Debian 4.0.2-4)
(1 row)
template1=# select datname,datvacuumxid,datfrozenxid from pg_database where
datname='template1';
datname | datvacuumxid | datfrozenxid
-----------+--------------+--------------
template1 | 2000 | 3221227473
(1 row)
template1=# vacuum freeze;
VACUUM
template1=# select datname,datvacuumxid,datfrozenxid from pg_database where
datname='template1';
datname | datvacuumxid | datfrozenxid
-----------+--------------+--------------
template1 | 2056 | 2056
(1 row)

Okey, frozen, now lanch vacuumdb from command line:

# vacuumdb --version
vacuumdb (PostgreSQL) 8.1.0
# vacuumdb -a -U postgres
vacuumdb: vacuuming database "postgres"
VACUUM
vacuumdb: vacuuming database "template1"
VACUUM

Oops, template1 must not be vacuumed.

template1=# select datname,datvacuumxid,datfrozenxid from pg_database where
datname='template1';
datname | datvacuumxid | datfrozenxid
-----------+--------------+--------------
template1 | 2171 | 3221227644
(1 row)

template1 is unfrozen.

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.