order of operations for pg_restore

From: Andrew Hammond <andrew(dot)george(dot)hammond(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: order of operations for pg_restore
Date: 2012-01-12 00:57:34
Message-ID: CAAC-ZNX-3smZab_sqNriObTVEVO41K0eW_5wqj3SSKkh755gdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I'm working on a tool that runs pg_restore with -j 4. I notice that
after COPYing in the data, pg_restore does two indexes and a cluster
command in parallel. The first CREATE INDEX is running, the CLUSTER
command is waiting on it and the second CREATE INDEX is waiting on the
CLUSTER. This seems sub-optimal. Would it make sense to run the
CLUSTER command first? I'm pretty sure I can replicate the behavior if
necessary. Running 9.1.2.

Andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-01-12 00:58:02 Re: WIP -- renaming implicit sequences
Previous Message Andrew Dunstan 2012-01-12 00:53:19 Re: JSON for PG 9.2