Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tjiBe-00Ci9r-Sq for pgsql-general@arkaria.postgresql.org; Sun, 16 Feb 2025 17:12:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tjiBb-009bLR-I5 for pgsql-general@arkaria.postgresql.org; Sun, 16 Feb 2025 17:12:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tjiBb-009bLI-6o for pgsql-general@lists.postgresql.org; Sun, 16 Feb 2025 17:12:07 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tjiBY-0019dG-37 for pgsql-general@postgresql.org; Sun, 16 Feb 2025 17:12:06 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id EFA4B114022C; Sun, 16 Feb 2025 12:12:03 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Sun, 16 Feb 2025 12:12:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1739725923; x=1739812323; bh=DqG6aKPsnlwYvFBEG7AnJk6mpPuRY5ALhYoM5UdVhww=; b= kBTy72JM8uk9ojWOXowEElBu6fANRtSM6tpIO0YB4KxrPGRM5gvjbP5NBWx0jiVL 97Tv/6NNahl3wYjhM10Od6gfvUZqV5Qk2SBkxrqvcymqS/qgSmBo1Un8KCcp6abb baPtDK6HXcp9Hog4n1pAC+qvx+Tq+EU4+NB5tbEC4lZGg2oAugF9uwCIAuH4vU1T UKVE+u6a1PWWMPvgz5LG3gClrV7wSx72Ga9f5dRmnxh7g+zWgEkjMSmy/8Wp5g8P Ens+OLCAIx90r5tkxFNAJkjfjJ3vi14Ss8qkBc7CHMPSlIF6bCa9jOJJ9aoXXl/V Sxdd1tRH1MF53X67dTaP9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1739725923; x= 1739812323; bh=DqG6aKPsnlwYvFBEG7AnJk6mpPuRY5ALhYoM5UdVhww=; b=q OwfIVgN95VGL4+f74k0xQUHdcQoVVcIVtRq9qdXJkom9zL3EEMAZ1GmxF94XPhdz s7ugvZAFk0q0xuEjtBnEHNdHdCegVr3ioRZhYW2cGH7KqwuvtMNcoZwdCGBWayuN uTqq8USBBWFsKlZFtqtUPnG197LNYGWu/Sw7kKdGB5ZPudePekP4YT80iddL8TEH ztASzIyqHuLFj2HkA/ClCwFetl+Ujqh5nYUqUDpTNEi6Hs8LTc5xfE1ydhYI2Un4 PngELAyZOUAhHvp6bJrrMgDrWB+vgv+tIft/PU8eGqPZG59eFmYt4A0Th93DXvxV h7ybxfh2dzlS7mBfbNbeg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdehiedtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgg gfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghv vghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrf grthhtvghrnhepgfdufeekhfevfeelveeiueevhedvuddukeduvddvlefhueeuieejtdeu vdevvdeunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmth hpohhuthdprhgtphhtthhopehmrghilhgsshhvseihrghhohhordgtohhmpdhrtghpthht ohephhhtrghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhonhhljhhohh hnshhonhhjrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghr rghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Feb 2025 12:12:02 -0500 (EST) Message-ID: Date: Sun, 16 Feb 2025 09:12:02 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Help in vetting outcome of "vacuumdb --analyze-in-stages" - during DB Upgrade from EC2- PGS - Community Edn ver 13.X to 14.X To: Y_Bharani_mbsv , Greg Sabino Mullane , Ron Johnson Cc: pgsql-general References: <0558ddd4d71641bdb41fa49b2425f73c@safrangroup.com> <1061066336.5835157.1733316137292@mail.yahoo.com> <1482982714.8486017.1735661703839@mail.yahoo.com> <1763130721.4001842.1737733841628@mail.yahoo.com> <132487461.4068668.1737741687606@mail.yahoo.com> <0dc06cb7-33cc-43ba-a95f-535fdf0a0439@aklaver.com> <1751608443.5432365.1738081421269@mail.yahoo.com> <74599d1d-c8a2-4e59-a50d-019dcc973de8@aklaver.com> <200665967.5560583.1738095230696@mail.yahoo.com> <21b5d62a-19d1-413f-9d5e-d681cd2bb91b@aklaver.com> <47454513.6047834.1738179914107@mail.yahoo.com> <1841861276.9581730.1738888679871@mail.yahoo.com> <56243553.9616888.1738893835649@mail.yahoo.com> <940531722.732202.1739711614045@mail.yahoo.com> <6f44101c-ce01-478e-9fb1-138a10f358d9@aklaver.com> <688728245.763369.1739723234892@mail.yahoo.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <688728245.763369.1739723234892@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/16/25 08:27, Y_Bharani_mbsv wrote: > Adrian > TQ for the instant reply. > post DB migration to Ver 14.X (successfully) and Post executing the > "vacuumdb --analyze-in-stages", i noticed "read me option" and the > caveat on it. Did you do: vacuumdb --analyze-in-stages or vacuumdb --all --analyze-in-stages ? > > Later, I too did > a) vacuum(full,verbose,skip_locked) ... each table wise b) analyze > (verbose,skip_locked) .. each table wise > against all the DB's VACUUM FULL has not purpose at this point as FULL recycles unneeded tuples from DELETEs and UPDATEs and at this stage there are none of those. Also going table by table is not necessary when you can vacuuum/analyze an entire database, which is what you want, with one command. > > Any guidance on how to overcome the issue. There is no issue to overcome. Per: https://www.postgresql.org/docs/current/pgupgrade.html 17. Statistics "Because optimizer statistics are not transferred by pg_upgrade, you will be instructed to run a command to regenerate that information at the end of the upgrade. You might need to set connection parameters to match your new cluster." Running vacuumdb --all --analyze-in-stages will create the statistics you need it just does it in steps(stages) vs doing vacuumdb --all --analyze-only which does it in a single pass. Unless you are planning to run some large complicated queries immediately upon completion of the upgrade you will not notice the difference. > Any suggestion ? > > -- Adrian Klaver adrian.klaver@aklaver.com