Re: can't shrink relation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: can't shrink relation
Date
Msg-id 23610.1011280565@sss.pgh.pa.us
Whole thread Raw
In response to can't shrink relation  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
Gavin Sherry <swm@linuxworld.com.au> writes:
> I am getting a NOTICE in logs about once a day:
> NOTICE:  Rel s: TID 212/16: DeleteTransactionInProgress 0 - can't
> shrink relation

AFAICT, the only way to get that message is if you have a tuple with
good (committed) t_xmin, but t_xmax is 0, and yet HEAP_XMAX_INVALID
is not set.  Bizarre.  Does the tuple appear valid otherwise?
(Try "select * from s where ctid = '(212,16)'" to view it.)

> Moreover, this error is occuring in the same database I reported as
> saying 'Relation pg_shadow does not exist' the other day.

You've got something mighty weird going on there.  Possibly time for
a dump/initdb/reload.  Possibly time to run some memory & disk
diagnostics.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: can't shrink relation
Next
From: Jan Wieck
Date:
Subject: Re: CREATE OR REPLACE VIEW / TRIGGER