From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Florian Gossin <fluancefg(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Can't restore view with pg_restore |
Date: | 2017-05-24 15:39:38 |
Message-ID: | 2329.1495640378@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Florian Gossin <fluancefg(at)gmail(dot)com> writes:
> I'm doing a dump in directory format of database with several schemas using
> pg_dump and when I try to restore it using pg_restore, I get the following
> error:
> ERROR: could not convert table "bmv_visits_list" to a view because it has
> triggers
> STATEMENT: CREATE RULE "_RETURN" AS
> ON SELECT TO bmv_visits_list DO INSTEAD SELECT patient.firstname,
Hm, seems like pg_dump is trying to dump the various bits of the view
in the wrong order. But since we haven't seen reports of this before,
there must be something odd about your schema to trigger it. Can you do
a plain "pg_dump -s" and show us the parts relating to this view and its
underlying tables?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-05-24 15:43:06 | Re: Can't restore view with pg_restore |
Previous Message | Michael Paquier | 2017-05-24 14:54:30 | Re: BUG #14666: Question on money type as the key of partitioned table |