Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 33963475964 for ; Fri, 19 Jul 2002 15:26:22 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id CEFB8382483; Fri, 19 Jul 2002 15:25:39 -0400 (EDT) From: "Ligia Pimentel" X-Newsgroups: comp.databases.postgresql.admin Subject: Problem with database I need to repair... Date: Fri, 19 Jul 2002 13:21:15 -0500 Organization: . Lines: 43 Message-ID: Reply-To: "Ligia Pimentel" X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Archive-Number: 200207/308 X-Sequence-Number: 4992 This morning I had a problem with a linux server that was reseted accidentally (someone pushed the wrong button). Anyway, we couldn't recover the database because the log file was corrupted and we had to pg_resetxlog... We restored yesterday's backup and are now working again on one database, but we have a problem with the second database... The database General is obviously corrupted, and we found this out when we where trying to access one of the tables. when we are connected to the General database and try to access any table, we get No relations found. but when we try to create the tables again, we can't because we get relation 'x' already exists. The worst part is I can connect to the database, but the general catalog obviously is not recognizing it. chequesdegerencia=# \c General You are now connected to database General General=# ls General-# \l List of databases Database | Owner | Encoding -------------------+----------+----------- chequesdegerencia | postgres | SQL_ASCII template0 | postgres | SQL_ASCII template1 | postgres | SQL_ASCII (3 rows) Does anyone have any ideas on this? Thank you. PS. I'm already installing a new computer and moving all to the fresh computer, but I wonder..