Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fY6zT-0007Ca-Vs for pgsql-general@arkaria.postgresql.org; Wed, 27 Jun 2018 09:43:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fY6zS-0005wm-7x for pgsql-general@arkaria.postgresql.org; Wed, 27 Jun 2018 09:43:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fY6zR-0005wd-Si for pgsql-general@lists.postgresql.org; Wed, 27 Jun 2018 09:43:54 +0000 Received: from mail.verite.pro ([185.16.44.216]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fY6zO-0008Sr-Ia for pgsql-general@postgresql.org; Wed, 27 Jun 2018 09:43:52 +0000 Received: from genius-map.net (verite.pro [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id EFDD88C0021; Wed, 27 Jun 2018 11:40:04 +0200 (CEST) Received: by genius-map.net (Postfix, from userid 1001) id 53F6838A0301; Wed, 27 Jun 2018 11:43:46 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: pg_upgrade and wraparound From: "Daniel Verite" To: "Alexander Shutyaev" Cc: "Andres Freund" ,"Tom Lane" ,"Adrian Klaver" ,"pgsql-general" In-Reply-To: Date: Wed, 27 Jun 2018 11:43:45 +0200 Message-Id: <3987660e-ff1a-47cb-bf44-52cfd3029cfb@manitou-mail.org> X-Mailer: Manitou v1.7.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Shutyaev wrote: > Is there any hope the issue with pg_upgrade can be resolved? If not, > could you give me some hints as to how can I decrease time needed > for pg_dumpall | psql? Not sure about the larger problem, but for the part about having more than 1 million large objects that get committed individually, setting fsync=3Doff for the reload phase is likely to help a lot. Just don't forget to turn it on again when it's done. See https://blog.2ndquadrant.com/postgresql-fsync-off-warning-in-config-file/ Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite