Re: Relation 'pg_user' does not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matt Beauregard <matt(at)designscape(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Relation 'pg_user' does not exist
Date: 2000-11-09 00:13:30
Message-ID: 29336.973728810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matt Beauregard <matt(at)designscape(dot)com(dot)au> writes:
>> Ugh, something's more hosed than I thought, then. What do you get
>> from "select * from pg_class" in template1?

> 65 rows of stuff, including
> pg_user | 0 | 70 | 0 |
> 0 | 0 | 0 | f | f | r |
> 8 | 0 | 0 | 0 | 0 | 0 | f
> | t |
> pg_rules | 0 | 70 | 0 |
> 0 | 0 | 0 | f | f | r |
> 3 | 0 | 0 | 0 | 0 | 0 | f
> | t |
> pg_views | 0 | 70 | 0 |
> 0 | 0 | 0 | f | f | r |
> 3 | 0 | 0 | 0 | 0 | 0 | f
> | t |

The plot thickens ... what did you say the error message was exactly?

Actually, what'd be really useful here is to see where the error is
being reported. Try this:

Window 1: start psql in template1

Window 2: find out PID of backend connected to psql; then, as postgres
user, run "gdb /path/to/postgres/executable" and do this:

attach PID-of-backend
break elog
cont

Window 1: issue failing query (whatever will provoke the error about
pg_user not existing)

Window 2: should get a breakpoint response. Say

bt
quit
y

and send the output from the bt command ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric Bianchi 2000-11-09 00:35:05 OID problems
Previous Message jscott 2000-11-09 00:02:49 Problems dumping a DB