Re: [BUGS] Can't restore view with pg_restore
От | Tom Lane |
---|---|
Тема | Re: [BUGS] Can't restore view with pg_restore |
Дата | |
Msg-id | 2329.1495640378@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | [BUGS] Can't restore view with pg_restore (Florian Gossin <fluancefg@gmail.com>) |
Ответы |
Re: [BUGS] Can't restore view with pg_restore
|
Список | pgsql-bugs |
Florian Gossin <fluancefg@gmail.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления: