Re: [BUGS] ehm...

2002-01-13 Thread Tom Lane

andrea gelmini <[EMAIL PROTECTED]> writes:
> you was right, and there's no need of vacuum db to crash the postmaster...
> doing a fresh installation, a fresh initdb, starting my script (and a
> second bash script that does nothing more than a simple insert) after about
> 1 milion transactions i can see the problem (after changed sources as you told
> me), without vacuumdb.

Hm, you never did a VACUUM at all?  Don't see how that can be ---
removal of CLOG segments is triggered by VACUUM.

Please let me know if you can still see the problem with today's snapshot.

regards, tom lane

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



[BUGS] cannot find attribute 1 of relation (of some user table) in 7.1.3

2002-01-13 Thread Dirk Lutzebaeck


Hi, I have the follow problem when vacuum'ing on 7.1.3:

db1=# vacuum;
ERROR:  cannot find attribute 1 of relation docmatchsel

I cannot drop the table either and the system does not seem do know
the columns:

db1=# \d docmatchsel
Table "docmatchsel
 Attribute | Type | Modifier
---+--+--

db1=#

Then I tried to reindex the table in standalone mode which gives:

backend> reindex table docmatchsel force
ERROR:  catalog is missing 4 attributes for relid 117042636

I also reindexed the system tables to no avail.

docmatchsel was created as a temporary table in the application. No
indexes were defined for this table.

I cannot get either run vacuum nor pg_dump with success.

Is there any insight to this? I looked up the email archives but could
find a way to get rid of this problem.

Dirk

---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



Re: [BUGS] cannot find attribute 1 of relation (of some user table) in 7.1.3

2002-01-13 Thread Tom Lane

Dirk Lutzebaeck <[EMAIL PROTECTED]> writes:
> Hi, I have the follow problem when vacuum'ing on 7.1.3:
> ERROR:  cannot find attribute 1 of relation docmatchsel
> Then I tried to reindex the table in standalone mode which gives:
> backend> reindex table docmatchsel force
> ERROR:  catalog is missing 4 attributes for relid 117042636

Bizarre.  Were there four columns altogether?

> docmatchsel was created as a temporary table in the application.

Since it's only a temporary table, my counsel is:

1. delete from pg_class where relname = 'docmatchsel';

2. pg_dump, initdb, reload.

You might be okay after just step 1, but given that we don't know what
caused this, an initdb seems like a good idea.

It would be interesting to go groveling through pg_attribute and see if
we can find any traces of the missing attribute rows, but unless you're
prepared to sift through the bits yourself (or give access to some
developer to do it), that's not going to happen.

regards, tom lane

---(end of broadcast)---
TIP 6: Have you searched our list archives?

http://archives.postgresql.org