Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAN1B-0000Va-QQ for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2017 21:27:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eAN1B-00089N-DB for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2017 21:27:17 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAN1A-000896-VY for pgsql-admin@postgresql.org; Thu, 02 Nov 2017 21:27:17 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eAN17-0002p0-Ts for pgsql-admin@postgresql.org; Thu, 02 Nov 2017 21:27:16 +0000 Received: by mail-wm0-x235.google.com with SMTP id y80so1565154wmd.0 for ; Thu, 02 Nov 2017 14:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=mOMRGcDtaJcBSO6zoELxTJO9Rk2J04wb2wRAey+0hxY=; b=sTZO8svlvErR53yzRjik/iqBsxvKyStCWyoFLOu7tpKevR/tFLBDpJtDLXq3HhWeT2 SrMJXHXuRzZnZSZ8UTF1J3Liny0lYLVbXzMd7eXAYisX596+hQTuMDT16ewiDjUSSY3a lNwuP7HBwBTg/qXsFIe+QSvjpp75jhNcBSbs/NfPKyJep3OAUQYoIX1VNr9wtP2qJqwR s46C8jptpHGLiXEzIcWqWyAEyLZMMVvmtbuFXhqS9nYGKY50QWTWZba/4tdhvWb9p2r9 jLOT5dZff/abKwt67ajGWt1dZoYRLjlpnfrTNejetV4pL3XsrPMPUqKmPeFt309sMMB/ Vrhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=mOMRGcDtaJcBSO6zoELxTJO9Rk2J04wb2wRAey+0hxY=; b=l2Y2YZ7mlkS7SmwLfPMXjZOhAs0dGNw2/O+mfPKOXcWqDy1oUvteggGunZw/s66EqC xQyL8Anp8baVWMWPyVY6zHAf77mpXXFP21CcEvgsxRAQQOecoMmvmESTvrIy3fSGCfaa LtKivGlxgn47LbioHmD3DOptHD9EOxwWlu3YOebrgskGe7ZSeFVLI8xh7KrJNaWWICNr pwMIgHCHiGQt2kxuSWd7ZYNSmYQspN1JcqAcfJkJl+fLvfH+eMVtzrf08nR9gAu+687M lY6nrMhzk8+xpsJGnKZKfHCQrYmJ+JMStt0Agnx5W+L7GLsh41G576Z0BVmOZ2GfJFDp aGZg== X-Gm-Message-State: AJaThX6xkY1M07MLsgFYUSH0LcJmse1VXFbHuNoHXgYct9gJUnVWccJb mhUVbUChM4Q3JqLaTcVG1ZivttXv X-Google-Smtp-Source: ABhQp+Tt1FE8V+jKPyXjkp7nraaXO+iQ0d5Vh8Z+pxdGVwN+Mx1DiopaxU1LK+AivExM3qgGZg2iBA== X-Received: by 10.28.122.22 with SMTP id v22mr2700930wmc.47.1509658032615; Thu, 02 Nov 2017 14:27:12 -0700 (PDT) Received: from [192.168.1.5] (athedsl-4500096.home.otenet.gr. [94.71.150.136]) by smtp.gmail.com with ESMTPSA id 61sm2272834wrg.58.2017.11.02.14.27.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 14:27:11 -0700 (PDT) From: Vasilis Ventirozos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: postgresql9.4 aws - no pg_upgrade Date: Thu, 2 Nov 2017 23:27:10 +0200 References: <5c0dd3a9-bee1-13ce-04aa-18571b12e5c4@commandprompt.com> <69c5d778-5d85-dc2e-c70f-5ef95b06db4f@commandprompt.com> <84769c92-3364-1b03-3217-56716e3e9fff@commandprompt.com> To: pgsql-admin In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.4.7) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org > On 2 Nov 2017, at 23:03, bala jayaram wrote: >=20 > Hi Team, >=20 >=20 > We tried in production, pg_upgrade works well. But running vacuumdb , res= ulted in huge spike in CPU, system halted. Is there a way to fasten or para= llel vacuum solution for faster recovery after pg_upgrade. >=20 > Our database size is around 500GB, contains multiple databases, huge reco= rds. What is the minimum way to do a vacuuming after pg_upgrade? This is fo= r migration from 9.3 to 9.4. All you need to do right after the upgrade is getting new statistics by run= ning "analyze" or by doing something like vacuumdb -a -v -z. That should take a while but it shouldn't "halt" anything. I believe that 9= .4 doesn't have -j in vacuumdb, so you can script something that will will get all tables, split them and run each part in X = number of psqls. When you are done with the statistics then scheduling a vacuum would be a g= ood idea. this can be done during any convenient=20 time or you can just split the work using a script. Regards, Vasilis Ventirozos --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin