Re: [HACKERS] Postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Guru Prasad <pnguruji(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [HACKERS] Postgres
Date: 2001-06-16 16:54:53
Message-ID: 28177.992710493@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Guru Prasad <pnguruji(at)yahoo(dot)com> writes:
> using postgres 7.1 version. Now the database got corrupted. I had no clue
> how it got corrupted. Basically, i did found that the data of various
> users existing (in /usr/local/pgsql/data directory). But there were no
> data existing in the following system catalogs.

> pg_database. (except template0 & template1)
> pg_shadow. (except postgres user. Previously 15 users were there.)
> pg_tables. (Not showing any user created tables. Only system tables
> get displayed).

> But the data structure of individual tables exist somewhere. Suppose if i
> do 'select * from tablename' then field names gets displayed but says 'no
> rows'. At the same time, i am unable to get the structure through
> \d tablename.

If there's no entry for your database in pg_database, how were you able
to connect to do a 'select * from tablename'?

I'd like to see exactly what you did and exactly what results you got,
not your interpretations about whether there's data in tables or not.
Whatever's going on here is probably more subtle than that.

regards, tom lane

In response to

  • Postgres at 2001-06-16 05:40:54 from Guru Prasad

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-06-16 17:02:15 Re: Doing authentication in backend
Previous Message bpalmer 2001-06-16 16:52:22 Re: RTLD_GLOBAL on openbsd

Browse pgsql-sql by date

  From Date Subject
Next Message Brian McCane 2001-06-16 20:51:29 Re: performance issues
Previous Message Tom Lane 2001-06-16 16:44:07 Re: casts and conversions