Re: pg_restore dependencies

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_restore dependencies
Date: 2009-04-13 00:40:16
Message-ID: 49E289F0.30805@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew, Tom,

I just did a test run using Andrew's patch with a database with over 400
objects. I didn't see any locks waiting during the entire run. So the
patch logic appears to work.

Note that it also shows up that some CONSTRAINT declarations really
shouldn't require an exclusive lock. I'd estimate that if we could step
a lot of constraints down to sharelock (yes, I know, there's some issues
with that), it would shorten a parallel restore by a large chunk (like
25% in the 4-core case I'm testing).

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Abhijit Menon-Sen 2009-04-13 03:39:02 [PATCH] Add a test for pg_get_functiondef()
Previous Message Andrew Dunstan 2009-04-12 20:08:02 Re: pg_restore dependencies