Re: [HACKERS] Refactor handling of database attributes betweenpg_dump and pg_dumpall
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Refactor handling of database attributes betweenpg_dump and pg_dumpall |
Дата | |
Msg-id | 20180121151748.GC10632@momjian.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Refactor handling of database attributes between pg_dump and pg_dumpall (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Refactor handling of database attributes between pg_dump and pg_dumpall
|
Список | pgsql-hackers |
On Fri, Jan 19, 2018 at 02:54:25PM -0500, Tom Lane wrote: > Hmm ... so there's a small problem with this idea of dropping and > recreating template1: > > pg_restore: connecting to database for restore > pg_restore: dropping DATABASE template1 > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error from TOC entry 3024; 1262 1 DATABASE template1 > postgres > pg_restore: [archiver (db)] could not execute query: ERROR: cannot drop a templ > ate database > Command was: DROP DATABASE "template1"; Uh, the oid of the template1 database is 1, and I assume we would want to preserve that too. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +
В списке pgsql-hackers по дате отправления: