Re: 7 hrs for a pg_restore?
От
Jeff Davis
Тема
Re: 7 hrs for a pg_restore?
Дата
Msg-id
1203445403.3846.86.camel@dogma.ljc.laika.com
Ответ на
7 hrs for a pg_restore? (Douglas J Hunley)
Список
Дерево обсуждения
7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Jeff Davis <pgsql@j-davis.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Jeff Davis <pgsql@j-davis.com>
Re: 7 hrs for a pg_restore? "Pavan Deolasee" <pavan.deolasee@gmail.com>
Re: 7 hrs for a pg_restore? Jeff Davis <pgsql@j-davis.com>
Re: 7 hrs for a pg_restore? Matthew <matthew@flymine.org>
Re: 7 hrs for a pg_restore? Jeff Davis <pgsql@j-davis.com>
Re: 7 hrs for a pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
Re: 7 hrs for a pg_restore? Matthew <matthew@flymine.org>
Re: 7 hrs for a pg_restore? ohp@pyrenet.fr
Re: 7 hrs for a pg_restore? "Joshua D. Drake" <jd@commandprompt.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Dave Cramer <pg@fastcrypt.com>
Re: 7 hrs for a pg_restore? Jeff Davis <pgsql@j-davis.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Dave Cramer <pg@fastcrypt.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Greg Smith <gsmith@gregsmith.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Dave Cramer <pg@fastcrypt.com>
Re: 7 hrs for a pg_restore? Richard Huxton <dev@archonet.com>
Re: 7 hrs for a pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Jeff <threshar@torgo.978.org>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Erik Jones <erik@myemma.com>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
Re: 7 hrs for a pg_restore? Gregory Stark <stark@enterprisedb.com>
Re: 7 hrs for a pg_restore? Erik Jones <erik@myemma.com>
Re: 7 hrs for a pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
Re: 7 hrs for a pg_restore? Erik Jones <erik@myemma.com>
Re: 7 hrs for a pg_restore? Gregory Stark <stark@enterprisedb.com>
Re: 7 hrs for a pg_restore? Chris <dmagick@gmail.com>
Re: 7 hrs for a pg_restore? Gregory Stark <stark@enterprisedb.com>
Re: 7 hrs for a pg_restore? Chris <dmagick@gmail.com>
Re: 7 hrs for a pg_restore? Matthew <matthew@flymine.org>
Re: 7 hrs for a pg_restore? Guillaume Cottenceau <gc@mnc.ch>
Re: 7 hrs for a pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
Re: 7 hrs for a pg_restore? Guillaume Cottenceau <gc@mnc.ch>
Re: 7 hrs for a pg_restore? Vivek Khera <vivek@khera.org>
Re: 7 hrs for a pg_restore? Douglas J Hunley <doug@hunley.homeip.net>
On Tue, 2008-02-19 at 13:03 -0500, Douglas J Hunley wrote: > I spent a whopping seven hours restoring a database late Fri nite for a > client. We stopped the application, ran pg_dump -v -Ft -b -o $db > > ~/pre_8.3.tar on the 8.2.x db, and then upgrading the software to 8.3. I then > did a pg_restore -v -d $db ./pre_8.3.tar and watched it positively crawl. > I'll grant you that it's a 5.1G tar file, but 7 hours seems excessive. > Are there lots of indexes on localized text attributes? If you have a big table with localized text (e.g. en_US.UTF-8), it can take a long time to build the indexes. If the file is 5GB compressed, I wouldn't be surprised if it took a long time to restore. Keep in mind, if you have several GB worth of indexes, they take up basically no space in the logical dump (just the "CREATE INDEX" command, and that's it). But they can take a lot of processor time to build up again, especially with localized text. Regards, Jeff Davis
В списке pgsql-performance по дате отправления