Problem with pg_dump / pg_restore - Mailing list pgsql-admin

From Armel HERVE
Subject Problem with pg_dump / pg_restore
Date
Msg-id CGEBLCNHICNOBNMINIICEECKCDAA.ah.pgsql@laposte.net
Whole thread Raw
In response to Problem with pg_dump / pg_restore  ("Armel HERVE" <ah.pgsql@laposte.net>)
List pgsql-admin
Hi everybody,

I have already posted this message, but nobody answered to it.
I can't imagine that I'm the first one who have this problem, so
I post it again:


I have a problem with dump / restore commands on PostgreSQL:
pg_dump doesn't care about views dependencies:
    - I create a view V1 on a table and then another view V2 on the
same table
    - I modify V1 to use V2 and not directly the table

pg_dump doesn't detect that V1 is using V2. So the command batch
generated contains in first the creation of the view V1 which uses V2
and then the creation on the view V2 and it's impossible to restore a
database with this generated file.

My question is : how can I use pg_dump / pg_restore to generate a good
backup file ?

Postgres versions : 7.4

Thanks for your answers (and sorry for my poor english!!!)

Armel


pgsql-admin by date:

Previous
From: Oli Sennhauser
Date:
Subject: Re: server & client using different version, OK?
Next
From: Daniel Rubio
Date:
Subject: Randomly error using php persistent connections