Ouch! I've loaded my backup while being connected
to the wrong database - to the dafeult "postgres" database.
Is there a way to restore it? I currently have:
postgres=# \l
List of databases
Name | Owner | Encoding
-----------+----------+----------
postgres | postgres | UTF8
phpbb | postgres | UTF8
template0 | postgres | UTF8
template1 | postgres | UTF8
(4 rows)
It is difficult to find the solution on the web (bad keywords)
Regards
Alex
On 10/01/2010 10:40 PM, Alexander Farber wrote: > Ouch! I've loaded my backup while being connected > to the wrong database - to the dafeult "postgres" database. > > Is there a way to restore it? Sure. Just drop it and re-create it. The "postgres" database is just a convenience, and is typically empty. You'll need to connect to the template1 database; you can't drop the postgres database while you're connected to it. -- Craig Ringer
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера