Re: Can't list tables - Mailing list pgsql-novice

From Tom Lane
Subject Re: Can't list tables
Date
Msg-id 3490.989768035@sss.pgh.pa.us
Whole thread Raw
In response to Can't list tables  (Jan Chrillesen <jan@chrillesen.dk>)
List pgsql-novice
Jan Chrillesen <jan@chrillesen.dk> writes:
> I'm running 7.0.3 and want to upgrade to 7.1.1, but running pg_dumpall
> only dumps template1. Also psql -l only lists template1 - the same with
> \l

Hm.  The most common reason for this sort of breakage is that you
deleted the users who owned databases, tables, etc --- pg_dump gets
confused when you do that.  Look at the owner columns (datdba in
pg_database, relowner in pg_class, etc) and make sure you have pg_shadow
entries with matching usesysid values.

            regards, tom lane

pgsql-novice by date:

Previous
From: Jan Chrillesen
Date:
Subject: Can't list tables
Next
From: "Ken Laws"
Date:
Subject: Linking postgres databases