Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKxf4-0002xK-Qs for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 04:13:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hKxf3-0003yw-J5 for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 04:13:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKxf3-0003xq-6e for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 04:13:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKxf0-0006ZP-TM for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 04:13:00 +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 x3T4CriU029892; Mon, 29 Apr 2019 00:12:53 -0400 From: Tom Lane To: senor cc: "pgsql-general@lists.postgresql.org" Subject: Re: Optimize pg_dump schema-only In-reply-to: References: <17505fec-be0a-526a-9ee5-18bb0408a62a@gmail.com> <23800.1556500768@sss.pgh.pa.us> Comments: In-reply-to senor message dated "Mon, 29 Apr 2019 01:59:12 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29890.1556511173.1@sss.pgh.pa.us> Date: Mon, 29 Apr 2019 00:12:53 -0400 Message-ID: <29891.1556511173@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk senor writes: > I'm afraid it is 9.2.4. That's pretty old :-( > I noticed on 2 installations with similar table numbers (~200,000), > schema and hardware that one was done in hours and the other didn't > finish over the weekend. Keeping tabs on pg_stat_activity indicated > pg_dump was still processing and nothing else running. Hmm ... but without knowing what's different between the two, that's not much help. > Would you say that updating to 9.2.24 would be beneficial before > upgrading to 9.6? An update is pretty quick and could be worth the time > if there aren't additional requirements prior to starting the upgrade. That was my reasoning. It might not help, but it's a simple thing to do and it might help. regards, tom lane