Re: copy a database - Mailing list pgsql-general

From Tom Lane
Subject Re: copy a database
Date
Msg-id 2017.1093460071@sss.pgh.pa.us
Whole thread Raw
In response to Re: copy a database  (David Suela Fernández <dsuela@xsto.info>)
Responses Re: copy a database
List pgsql-general
David Suela =?ISO-8859-1?Q?Fern=E1ndez?= <dsuela@xsto.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

pgsql-general by date:

Previous
From: DeJuan Jackson
Date:
Subject: Re: The Slony General List
Next
From: Alvaro Herrera
Date:
Subject: Re: copy a database