Re: problems with pg_restore

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problems with pg_restore
Дата
Msg-id 23211.1058286389@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problems with pg_restore  ("Kuhn, Dylan K (4520500D)" <Dylan.Kuhn@navy.mil>)
Ответы Re: problems with pg_restore  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-admin
"Kuhn, Dylan K (4520500D)" <Dylan.Kuhn@navy.mil> writes:
> [ tries to restore a dump into a database with a different name ]
> pg_restore: [archiver (db)] could not execute query: ERROR: Database commen=
> ts may only be applied to the current database

> I'm not sure how to get around this one.  Can an archived database with com=
> ments be restored to a database with a different name?

Hm.  Evidently not :-(.  The COMMENT ON DATABASE facility is a bit bogus
anyway (since there's no way to make the comments visible across
databases).  You might be best advised not to use it.

Hackers: this seems like an extremely bad side-effect of what we thought
was a simple addition of a helpful check.  I am thinking we should
either remove the check again, or downgrade it to a WARNING (though I'm
not quite sure how to phrase the warning ...).  Any thoughts?

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Kuhn, Dylan K (4520500D)"
Дата:
Сообщение: problems with pg_restore
Следующее
От: "Kuhn, Dylan K (4520500D)"
Дата:
Сообщение: Re: problems with pg_restore