pg_dump query about views - Mailing list pgsql-general

From Colin Price (EML)
Subject pg_dump query about views
Date
Msg-id 5F052F2A01FBD11184F00008C7A4A800019432BC@eukbant101.ericsson.se
Whole thread Raw
List pgsql-general
Again, apologies if this is a duplication from the past but I can't it in
pgsql-questions :

-------------------------------
In the reference section, it states there are problems with dumping views
and rules. A pg_dumpall/pg_dump stores the view as a table with a rule.
Therefore, when loaded back in, the view is now a table and not loaded into
pg_view.

To change this, do I create a simple script to remove the 'CREATE TABLE' and
transform the 'CREATE RULE' into a create view statement>
---------------------------------

As always, thank you in advance,
Colin PRICE.

pgsql-general by date:

Previous
From: Oleg Broytmann
Date:
Subject: Re: [GENERAL] Problems compiling
Next
From: Gilles Darold
Date:
Subject: Re: [GENERAL] Problems compiling