Re: pg_dump without explicit table locking

Поиск
Список
Период
Сортировка
Искать
От
Craig Ringer
Тема
Re: pg_dump without explicit table locking
Дата
Msg-id
532797E9.6080907@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
pg_dump without explicit table locking Jürgen Strobel <juergen+pg@strobel.info>
Re: pg_dump without explicit table locking Robert Haas <robertmhaas@gmail.com>
Re: pg_dump without explicit table locking Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_dump without explicit table locking Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump without explicit table locking Jim Nasby <jim@nasby.net>
Re: pg_dump without explicit table locking Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump without explicit table locking Joe Conway <mail@joeconway.com>
Re: pg_dump without explicit table locking Craig Ringer <craig@2ndquadrant.com>
Re: pg_dump without explicit table locking Jeff Janes <jeff.janes@gmail.com>
Re: pg_dump without explicit table locking Joe Conway <mail@joeconway.com>
Re: pg_dump without explicit table locking Jürgen Strobel <juergen+pg@strobel.info>
Re: pg_dump without explicit table locking Jürgen Strobel <juergen+pg@strobel.info>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/18/2014 07:20 AM, Joe Conway wrote:
> On 03/17/2014 04:15 PM, Tom Lane wrote:
>> Jim Nasby  writes:
>>> On 3/17/14, 8:47 AM, Tom Lane wrote:
>>>> (Note that this is only one of assorted O(N^2) behaviors in 
>>>> older versions of pg_dump; we've gradually stamped them out 
>>>> over time.)
> 
>>> On that note, it's recommended that when you are taking a
>>> backup to restore into a newer version of Postgres you create
>>> the dump using the NEWER version of pg_dump, not the old one.
> 
>> Right.  IIRC, the OP said he *did* use a recent pg_dump ... but 
>> this particular issue got fixed server-side, so the new pg_dump 
>> didn't help against an 8.1 server :-(
> 
> Exactly. I backported the patch from 9.3 to 8.4 and saw a
> schema-only dump time go from  to
> 1 hour. This was for a database with about 500k tables.

I wonder if doing large batches of
   LOCK TABLE table1, table2, table3, ...

would help, instead of doing individual statements?


- -- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTJ5fpAAoJELBXNkqjr+S2XMkH/jhhyET40uuc+zkwpJzW6j7x
o6x2VsaME0PpFUZE5iRL0FDEbHovwznZsQFOPFaCOqZ9vCL1P0JWl6Wf1JNZPJSr
NkwT08PsiOFmtXvnGh5109z3Of6ADGyEKCWHp7msxokzj1whJqzcIbyjAajUq21K
wgnYksH6TUVuutDg6r6PPaNTbmIvcxHwRs58hYi8JUIXdzIyYSlLdPezAo0VjwGw
8GHUQYy4r/hkSDWA4ViZ6ZjDIIgzT46nrTdxkGNPZn4Oz8k6nASnFFZhLfanytQI
YQhqlmIa/jievlZX5Q38snIPE+KYEq3buYK/OmbKuDCfHotC9nNNDCHdop7Qs4c=
=zQoC
-----END PGP SIGNATURE-----


В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Josh Berkus
Дата:
FAQ