Re: Backup/Restore of single table in multi TB database
От
David Wilson
Тема
Re: Backup/Restore of single table in multi TB database
Дата
Msg-id
e7f9235d0805071309o6d6d7778r6920e5df03a55d3b@mail.gmail.com
Ответ на
Backup/Restore of single table in multi TB database (John Smith)
Список
Дерево обсуждения
Backup/Restore of single table in multi TB database "John Smith" <sodgodofall@gmail.com>
Re: Backup/Restore of single table in multi TB database Simon Riggs <simon@2ndquadrant.com>
Re: Backup/Restore of single table in multi TB database Francisco Reyes <lists@stringsutils.com>
Re: Backup/Restore of single table in multi TB database Simon Riggs <simon@2ndquadrant.com>
Re: Backup/Restore of single table in multi TB database Tom Lane <tgl@sss.pgh.pa.us>
Re: Backup/Restore of single table in multi TB database "John Smith" <sodgodofall@gmail.com>
Re: Backup/Restore of single table in multi TB database Simon Riggs <simon@2ndquadrant.com>
Ubuntu question Q Master <theqmaster@gmail.com>
Re: Ubuntu question Martijn van Oosterhout <kleptog@svana.org>
Re: Ubuntu question Justin <justin@emproshunts.com>
Re: Backup/Restore of single table in multi TB database "Joshua D. Drake" <jd@commandprompt.com>
Re: Backup/Restore of single table in multi TB database "David Wilson" <david.t.wilson@gmail.com>
Re: Backup/Restore of single table in multi TB database "Joshua D. Drake" <jd@commandprompt.com>
On Wed, May 7, 2008 at 4:02 PM, John Smith wrote: > Does anyone see a problem with this approach (e.g., correctness, > performance, etc.)? Or is there perhaps an alternative approach using > some other postgresql mechanism that I'm not aware of? Did you already look at and reject pg_dump for some reason? You can restrict it to specific tables to dump, and it can work concurrently with a running system. Your database is large, but how large are the individual tables you're interested in backing up? pg_dump will be slower than a file copy, but may be sufficient for your purpose and will have guaranteed correctness. I'm fairly certain that you have to be very careful about doing simple file copies while the system is running, as the files may end up out of sync based on when each individual one is copied. I haven't done it myself, but I do know that there are a lot of caveats that someone with more experience doing that type of backup can hopefully point you to. -- - David T. Wilson david.t.wilson@gmail.com
В списке pgsql-general по дате отправления
От: Joshua D. Drake
Дата: