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 1hDDaJ-0001Rh-B6 for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 19:36:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hDDaG-0005hs-TZ for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 19:36:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDDaF-0005hl-LZ for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 19:36:04 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDDaC-00019Z-2f for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 19:36:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B30B52129D; Sun, 7 Apr 2019 15:35:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 07 Apr 2019 15:35:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Y XVAc8rv5IOY91FXUqWGeJOr1ls0KagxJYhSPhbhq1w=; b=ABaTCEAOOfyY8mq+z ANq68sBkKEhymxnH/qjJoe/dRp0OVinvjeEdJtnMj6GozqNLoEkC/wa6MVSJM0QB nafnvNvaXD55fovRHhRLL9/pfybg7+kBqM63BJVj6wBntNnZqmR7x+4VXt36+68y PTAb/Irz/+SQsgleEv9EADL9/y1QsxVSKJq0zQU9H6d0JIZHz2HVZyFcpAX28stT z2d3IjWvDIXLqDfDwbRoluo+0+NmfxJAkjUWluIkcbAzcMALUoFMgU0deACwzaL0 YLAwgt2ejWpd6lxO3f6tqo6g7kJayt7eESCkF89P0nLopM3euR5G8hqhsNamWiiz M0ZHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=YXVAc8rv5IOY91FXUqWGeJOr1ls0KagxJYhSPhbhq 1w=; b=jd/WXuwpQIUGuo05y5foRJ40+o9hGvFCaDCa0PN66XLyEOFBPNpbKfYR8 WFRX/nGWl/mg4cz2uVkw2A8cx6dyiX5zH/CFoPVUEnxqLDyUC54rMZNGT9HRdWlt TFKbis23HIS/Ln3WvVz3WDuMoJQUNwH6sGsLNc4n9j6Hh25rZfF57X6W+Q1J+db+ OVl0flDpAc8YbnPhgXcktcO+xYjW60fhekHd7IPbstvVeZiJYOB2986fmN+YNLqm F6nXUzPs2OHI7AekTbklMy23jann9g1zUKXpYhNK0Pamo0xsQyj8HgWuqjsUnO2A 64Y/uN1CcWfdQCbYN/9yqvUtkTUlg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddugddufeekucdltddurdeguddtrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvf hfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghv vghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppe ejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpe dt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id CB5C41030F; Sun, 7 Apr 2019 15:35:57 -0400 (EDT) Subject: Re: pg_upgrade --jobs To: senor , "pgsql-general@lists.postgresql.org" References: <1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com> <16144.1554588125@sss.pgh.pa.us> <20138.1554594658@sss.pgh.pa.us> <41c4d2a3-0a0a-bec3-7609-ec232b95f27b@gmail.com> <9465052c-66c8-d425-135e-94465b5b3114@aklaver.com> From: Adrian Klaver Message-ID: <6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com> Date: Sun, 7 Apr 2019 12:35:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/7/19 12:05 PM, senor wrote: > Thank you Adrian. I'm not sure if I can provide as much as you'd need for a definite answer but I'll give you what I have. > > The original scheduled downtime for one installation was 24 hours. By 21 hours it had not completed the pg_dump schema-only so it was returned to operation. So this is more then one cluster? I am assuming the below was repeated at different sites? > The amount of data per table is widely varied. Some daily tables are 100-200GB and thousands of reports tables with stats are much smaller. I'm not connected to check now but I'd guess 1GB max. We chose to use the --link option partly because some servers do not have the disk space to copy. The time necessary to copy 1-2TB was also going to be an issue. > The vast majority of activity is on current day inserts and stats reports of that data. All previous days and existing reports are read only. > As is all too common, the DB usage grew with no redesign so it is a single database on a single machine with a single schema. > I get the impression there may be an option of getting the schema dump while in service but possibly not in this scenario. Plan B is to drop a lot of tables and deal with imports later. I take the above to mean that a lot of the tables are cruft, correct? > > I appreciate the help. > -- Adrian Klaver adrian.klaver@aklaver.com