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

pgsql: Modify parallel pg_restore to track pending and ready items by

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 (view raw or flat)
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)

pgsql-committers by date

Next:From: Simon RiggsDate: 2009-08-08 10:05:35
Subject: Re: pgsql: rm_cleanup functions need to be allowed towrite WAL entries.
Previous:From: Alvaro HerreraDate: 2009-08-07 20:55:05
Subject: pgsql: Document that autovacuum may run ANALYZE

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