dbTalk Databases Forums  

pg_dump / pg_restore

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss pg_dump / pg_restore in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Tucknott
 
Posts: n/a

Default pg_dump / pg_restore - 09-28-2004 , 09:25 AM






PostGreSQL 7.4.5

Not sure if this is the correct list ....
We were moving a database between two laptops and used pg_dump /
pg_restore to copy a specific database.
The problem was that pg_restore kept stopping as files already existed
in the target database (even though we had dropped the target and
recreated it) We followed and exact example from the pg_restore man
page.
As it turned out out the problem appeared to be caused by createdb not
using template0 to create the blank database - and hence creating one
partially populated. We dropped and recreated the target using -T
template0 and the restore worked fine.

The reason for the mail - would it be possible to highlight this in the
pg_restore documentation or to add a further option to pg_restore to
'overwrite' existing files?
Apologies in advance if the documentation already tells you to do
this...!


Regards,

Steve Tucknott

ReTSol Ltd

DDI: 01903 828769



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.