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 Novice > Re: ERROR: coul...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3140 of 3255
Post > Topic >>

Re: ERROR: could not access status of transaction 575

by tgl@[EMAIL PROTECTED] (Tom Lane) Jun 21, 2008 at 02:52 PM

[ sorry for not responding sooner ]

Brian Hurt <bhurt@[EMAIL PROTECTED]
> writes:
> I'm getting an error on a Postgres database when I access a table:

>> template0=# select * from pg_language;
>> ERROR:  could not access status of transaction 575
>> DETAIL:  could not open file "pg_clog/0000": No such file or directory
>> template0=#
> Unfortunately, as you can tell, this is causing problems, especially 
> with creating new databases.  I'm wondering if anyone knows what the 
> problem could be.

The fact that you're connected to template0, and that it seems to
contain some post-initdb changes, is raising a lot of alarm bells in
my head.  Exactly what did you do to this database just after initdb?

The behavior you're seeing indicates a lost hint bit --- that is,
there's a row inserted (or perhaps deleted) by transaction 575,
for which the XMIN_COMMITTED/INVALID (or XMAX_COMMITTED/INVALID)
hint bit never got set before the section of pg_clog containing
XID 575's commit status was thrown away.  There are a couple of ways
that could happen in 8.1, but I think the one that bit you is that
8.1 assumes that databases with datallowconn = false do not contain
any unhinted XIDs and so can be ignored while determining where to
truncate pg_clog.  So I'm suspicious that you did this:

	set template0's datallowconn to true
	fool around in template0
	set template0's datallowconn to false

without cleaning up after yourself by doing a VACUUM (or better
VACUUM FREEZE) on template0 after mucking with it.

FWIW, 8.2 and up use a different approach that is less vulnerable
to DBA cock-ups ...

			regards, tom lane

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




 3 Posts in Topic:
ERROR: could not access status of transaction 575
bhurt@[EMAIL PROTECTED]   2008-06-17 12:11:31 
Re: ERROR: could not access status of transaction 575
bhurt@[EMAIL PROTECTED]   2008-06-17 12:46:55 
Re: ERROR: could not access status of transaction 575
tgl@[EMAIL PROTECTED] (T  2008-06-21 14:52:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Oct 12 9:20:46 CDT 2008.