Re: pg_restore dependencies - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: pg_restore dependencies
Date
Msg-id 49E289F0.30805@agliodbs.com
Whole thread Raw
In response to Re: pg_restore dependencies  (Andrew Dunstan <andrew@dunslane.net>)
List 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


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pg_restore dependencies
Next
From: Abhijit Menon-Sen
Date:
Subject: [PATCH] Add a test for pg_get_functiondef()