Skip site navigation (1) Skip section navigation (2)

Re: backup and recovery

From: Naomi Walker <nwalker(at)eldocomp(dot)com>
To: "Mark M(dot) Huber" <MHuber(at)VMdirect(dot)com>
Cc: Naomi Walker <nwalker(at)eldocomp(dot)com>,"pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: backup and recovery
Date: 2004-03-22 16:19:12
Message-ID: 5.1.0.14.2.20040322091635.033ffd90@imap.eldocomp.com (view raw or flat)
Thread:
Lists: pgsql-admin
That brings up a good point.  It would be extremely helpful to add two 
parameters to pg_dump.  One, to add how many rows to insert before a 
commit, and two, to live through X number of errors before dying (and 
putting the "bad" rows in a file).


At 10:15 AM 3/19/2004, Mark M. Huber wrote:
>What it was that I guess the pg_dump makes one large transaction and our 
>shell script wizard wrote a perl program to  add a commit transaction 
>every 500 rows or what every you set. Also I should have said that we were 
>doing the recovery with the insert statements created from pg_dump. So... 
>my 500000 row table recovery took < 10 Min.
>
>Thanks for your help.
>
>Mark H
>
>
>-------------------------------------------------------------------------------------------------------------------------
>Naomi Walker                         Chief Information Officer
>                                                Eldorado Computing, Inc.
>nwalker(at)eldocomp(dot)com           602-604-3100
>-------------------------------------------------------------------------------------------------------------------------
>Forget past mistakes. Forget failures. Forget everything except what you're
>going to do now and do it.
>- William Durant, founder of General Motors
>------------------------------------------------------------------------------------------------------------------------
>
>-- CONFIDENTIALITY NOTICE --
>
>This message is intended for the sole use of the individual and entity to 
>whom it is addressed, and may contain information that is privileged, 
>confidential and exempt from disclosure under applicable law. If you are 
>not the intended addressee, nor authorized to receive for the intended 
>addressee, you are hereby notified that you may not use, copy, disclose or 
>distribute to anyone the message or any information contained in the 
>message. If you have received this message in error, please immediately 
>advise the sender by reply email, and delete the message. Thank you.
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend

-------------------------------------------------------------------------------------------------------------------------
Naomi Walker                         Chief Information Officer
                                               Eldorado Computing, Inc.
nwalker(at)eldocomp(dot)com           602-604-3100
-------------------------------------------------------------------------------------------------------------------------
Forget past mistakes. Forget failures. Forget everything except what you're 
going to do now and do it.
- William Durant, founder of General Motors
------------------------------------------------------------------------------------------------------------------------

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.

pgsql-admin by date

Next:From: Andrew SullivanDate: 2004-03-22 16:34:15
Subject: Re: Restoring DB From A Log?
Previous:From: Radu-Adrian PopescuDate: 2004-03-22 15:21:52
Subject: Re: Row data corruption under 7.3.5

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group