Re: copy a database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dsuela(at)xsto(dot)info
Cc: Christopher Browne <cbbrowne(at)acm(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: copy a database
Date: 2004-08-25 18:54:31
Message-ID: 2017.1093460071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Suela =?ISO-8859-1?Q?Fern=E1ndez?= <dsuela(at)xsto(dot)info> writes:
> The problem is that pg_dump always give me the next error:

> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR: relation "pg_user" does not exist

Have you tried re-creating that view?

CREATE VIEW pg_catalog.pg_user AS
SELECT
usename,
usesysid,
usecreatedb,
usesuper,
usecatupd,
'********'::text as passwd,
valuntil,
useconfig
FROM pg_shadow;

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-08-25 19:08:42 Re: copy a database
Previous Message DeJuan Jackson 2004-08-25 18:37:44 Re: The Slony General List