Unix Technical Forum

Fwd: vacuuming template0 gave ERROR

This is a discussion on Fwd: vacuuming template0 gave ERROR within the Pgsql Performance forums, part of the PostgreSQL category; --> ---------- Forwarded message ---------- From: Gourish Singbal <gourish@gmail.com> Date: Dec 26, 2005 5:04 PM Subject: vacuuming template0 gave ERROR ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:53 AM
Gourish Singbal
 
Posts: n/a
Default Fwd: vacuuming template0 gave ERROR

---------- Forwarded message ----------
From: Gourish Singbal <gourish@gmail.com>
Date: Dec 26, 2005 5:04 PM
Subject: vacuuming template0 gave ERROR
To: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>


Guys,

Got the following ERROR when i was vacuuming the template0 database.
postgresql server version is 7.4.5 and stats info in postgresql.conf is

# - Query/Index Statistics Collector -

stats_start_collector = true
stats_command_string = true
stats_block_level = true
stats_row_level = tue
#stats_reset_on_server_start = true

============================

step 1

update pg_database set datallowconn=TRUE where datname='template0';

step 2
\c template0
vacuum analyze verbose
.......
......
INFO: vacuuming "pg_catalog.pg_statistic"
ERROR: could not access status of transaction 1107341112
DETAIL: could not open file "/home/postgres/data/pg_clog/0420": No such
file or directory

step 3
postgres@test1:~> /usr/local/pgsql/bin/psql database1 -c 'SELECT datname,
age(datfrozenxid) FROM pg_database';
datname | age
-----------+------------
template0 | 1112108248
database1 | 1074511487
template1 | 1073987669
(3 rows)

Files in the pg_clog are:-
postgres@test1:~/data/pg_clog> ls -lart
total 417
-rw------- 1 postgres postgres 262144 2005-12-26 02:09 0443
drwx------ 2 postgres postgres 96 2005-12-26 02:17 ./
drwx------ 6 postgres postgres 640 2005-12-26 03:22 ../
-rw------- 1 postgres postgres 163840 2005-12-26 03:23 0444

Problem: template0 is not getting vacuumed due to the above ERROR.. please
let me know whats the solution.
--
Best,
Gourish Singbal


--
Best,
Gourish Singbal

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 01:53 PM.


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