From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Modify parallel pg_restore to track pending and ready items by |
Date: | 2009-08-07 22:48:34 |
Message-ID: | 20090807224834.455B775331E@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Modify parallel pg_restore to track pending and ready items by means of
two new lists, rather than repeatedly rescanning the main TOC list.
This avoids a potential O(N^2) slowdown, although you'd need a *lot*
of tables to make that really significant; and it might simplify future
improvements in the scheduling algorithm by making the set of ready
items more easily inspectable. The original thought that it would
in itself result in a more efficient job dispatch order doesn't seem
to have been borne out in testing, but it seems worth doing anyway.
Modified Files:
--------------
pgsql/src/bin/pg_dump:
pg_backup_archiver.c (r1.174 -> r1.175)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_archiver.c?r1=1.174&r2=1.175)
pg_backup_archiver.h (r1.81 -> r1.82)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_archiver.h?r1=1.81&r2=1.82)
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2009-08-08 10:05:35 | Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries. |
Previous Message | Alvaro Herrera | 2009-08-07 20:55:05 | pgsql: Document that autovacuum may run ANALYZE |