Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: restoring w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3087 of 3323
Post > Topic >>

Re: restoring with pg_restore

by fbax@[EMAIL PROTECTED] (Frank Bax) Apr 24, 2008 at 09:00 AM

Didier Gasser-Morlay wrote:
> - I believe that restoring a backup onto an existing, non empty
> database generates 'primary key violations' and I am not sure about
> what happens to exsiting records, I do not believe they are updated so
> I can get a restored database with data inconsistent with the 'live'
> server


Correct; existing rows within tables will not be updated.


> so, as I understand it, I would on the re****t server need to drop the
> database ; create a new bank database and restore onto this new
> database.
 >
> If I am correct so far, my question is : is it a good practice to drop
> and create a database every day on a postgreSQL server or do I risk
> any corruption of the database cluster (that's how I call the
> directory and files created with initdb)


Go ahead.  Simply use -c option of pg_dump/pg_dumpall.

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 4 Posts in Topic:
restoring with pg_restore
didiergm@[EMAIL PROTECTED  2008-04-23 18:21:16 
Re: restoring with pg_restore
phillip.smith@[EMAIL PROT  2008-04-24 09:34:45 
Re: restoring with pg_restore
didiergm@[EMAIL PROTECTED  2008-04-24 10:21:55 
Re: restoring with pg_restore
fbax@[EMAIL PROTECTED] (  2008-04-24 09:00:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:02:35 CST 2008.