Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YwXQg-0004j0-9y for pgsql-bugs@arkaria.postgresql.org; Sun, 24 May 2015 15:03:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YwXQf-000125-OX for pgsql-bugs@arkaria.postgresql.org; Sun, 24 May 2015 15:03:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YwXQe-00010j-Hx for pgsql-bugs@postgresql.org; Sun, 24 May 2015 15:03:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YwXQZ-0004X7-U3 for pgsql-bugs@postgresql.org; Sun, 24 May 2015 15:03:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t4OF2sn3026757; Sun, 24 May 2015 11:02:54 -0400 From: Tom Lane To: Stefan Seifert cc: Andres Freund , Pg Bugs Subject: Re: pg_upgrade slowness for databases with many tables In-reply-to: <15572721.6C7KJ65xZS@sphinx> References: <3559239.xQRrTQ2jGQ@sphinx> <1780127.t6Hj91Z03N@sphinx> <20150522220844.GM2028@alap3.anarazel.de> <15572721.6C7KJ65xZS@sphinx> Comments: In-reply-to Stefan Seifert message dated "Sat, 23 May 2015 19:02:44 +0200" Date: Sun, 24 May 2015 11:02:54 -0400 Message-ID: <26756.1432479774@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Stefan Seifert writes: > It looks like LockReassignCurrentOwner is taking most of the time. Yeah, so that is the issue that was alleviated by the patch you were pointed to. > What I really wonder though is, why pg_dump does all these queries for single > objects in the first place? If the target is to create a complete schema dump, > why not doing a select * from all the relevant pg_* tables and construct the > big picture in memory? That surely would be much faster? It's unclear that it would be faster, and it is clear that restructuring pg_dump like that would be a lotta work. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs