problems with pg_restore

Поиск
Список
Период
Сортировка
От Kuhn, Dylan K (4520500D)
Тема problems with pg_restore
Дата
Msg-id 78ED1F30F0D85B4698FBD6CF2A5AC8F5A576F9@NAWECHLKEX01VA.nadsuswe.nads.navy.mil
обсуждение исходный текст
Ответы Re: problems with pg_restore  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin

I have a 200GB archive I created like this:

% pg_dump -f db1.pga -Fc -b db1

To check that it is good, I tried to restore to another database:

% pg_restore -d db2 db1.pga
[...quickly restores sequences, then...]
pg_restore: [archiver (db)] could not execute query: ERROR: function plpgsql_call_handler already exists with same argument types

Ok, I had installed PLPGSQL in template1, which has been useful in other situations.  I drop db2, recreate it, and drop the PLPGSQL language and call handler, then try again:

% pg_restore -d db2 db1.pga
[...restores seqs, tables, keys, then spends several quiet hours (on blobs I assume)...]
pg_restore: [archiver (db)] could not execute query: ERROR: Database comments may only be applied to the current database

I'm not sure how to get around this one.  Can an archived database with comments be restored to a database with a different name?  Are the comments the only thing missing from the restored database, or could there be other things?

thanks,
Dylan Kuhn

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

Предыдущее
От: "Nigel Bishop"
Дата:
Сообщение: Installing plpgsql gives error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: problems with pg_restore