Re: Regression test failure date. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Regression test failure date.
Date
Msg-id 21062.1059423193@sss.pgh.pa.us
Whole thread Raw
In response to Regression test failure date.  (Robert Creager <Robert_Creager@LogicalChaos.org>)
Responses Re: Regression test failure date.  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am now seeing this error in 2003-03-03.

> CREATE TABLE INSERT_CHILD (cx INT default 42,
> cy INT CHECK (cy > x))
> INHERITS (INSERT_TBL);
> + ERROR:  RelationClearRelation: relation 130996 deleted while still in use

I have a theory about the failures that occur while creating tables.
If a relcache flush were to occur due to SI buffer overrun between
creation of the new rel's relcache entry by RelationBuildLocalRelation
and completion of the command, then you'd see an error exactly like the
above, because the relcache would try to rebuild the cache entry by
reading the pg_class and pg_attribute rows for the relation.  Which
would possibly not exist yet, and even if they did exist they'd be
invisible under SnapshotNow rules.

However this bug is of long standing, and it doesn't seem all that
probable as an explanation for your difficulties.  It would be worth
running the tests with log_min_messages set to DEBUG4 (along with the
verbosity setting, please) and see if you observe "cache state reset"
log entries just before the failures.

In any case this would not explain failures during DROP TABLE, so
there's another issue to look for.
        regards, tom lane


pgsql-hackers by date:

Previous
From: ivan
Date:
Subject: now about psql and one function
Next
From: Bruce Momjian
Date:
Subject: Re: Regression test failure date.