BUG #2550: pg_dumpall 7.4.13 -> restore 8.1.4 problem - Mailing list pgsql-bugs

From Michael Enke
Subject BUG #2550: pg_dumpall 7.4.13 -> restore 8.1.4 problem
Date
Msg-id 200607251606.k6PG6J35075382@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #2550: pg_dumpall 7.4.13 -> restore 8.1.4 problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2550
Logged by:          Michael Enke
Email address:      michael.enke@wincor-nixdorf.com
PostgreSQL version: 8.1.4
Operating system:   SuSE Linux 9.2
Description:        pg_dumpall 7.4.13 -> restore 8.1.4 problem
Details:

I used pg_dumpall in 7.4.13.
In the created backup there is a
... delete from pg_shadow ...
since it is a table, all ok.

But in 8.1.4 it is a view so I get an error at restore:
ERROR:  cannot delete from a view
HINT:  You need an unconditional ON DELETE DO INSTEAD rule.

The same for pg_group
Is there a way to patch the output of pg_dumpall 7.4?
I found nothing in the docu (heavy to look for,
pg_dumpall found in so many places).

pgsql-bugs by date:

Previous
From: "Zuleima Lara"
Date:
Subject: BUG #2551: to_char a to_number
Next
From: "Boris"
Date:
Subject: BUG #2552: wrong sql dump?