From: Justin Pryzby <pryzby@telsasoft.com>
To: Prajna Shetty <Prajna.Shetty@mindtree.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org, Beenu Sharma <Beenu.Sharma@mindtree.com>
Cc: Pranabesh Saha <Pranabesh.Saha@mindtree.com>
Cc: Surya Susai <Surya.Susai@mindtree.com>
Subject: Re: Performance issue post upgrade on Version 13 - Incorrect Estimation Cost choosing Hash Aggregate-Nested Left Loop Join
Date: Thu, 24 Mar 2022 07:24:14 -0500
Message-ID: <20220324122414.GZ28503@telsasoft.com> (raw)
In-Reply-To: <MAZPR01MB54690C89F014DCA4FB551B6592179@MAZPR01MB5469.INDPRD01.PROD.OUTLOOK.COM>
References: <MAZPR01MB546945FEA4E21EE7C8E532FB92169@MAZPR01MB5469.INDPRD01.PROD.OUTLOOK.COM>
<1872582.1647871148@sss.pgh.pa.us>
<MAZPR01MB54690C89F014DCA4FB551B6592179@MAZPR01MB5469.INDPRD01.PROD.OUTLOOK.COM>
On Tue, Mar 22, 2022 at 12:57:10PM +0000, Prajna Shetty wrote:
> 1. We have performed Vacuum/Analyze/Reindex post Upgrade.
> 2. Tweaked work_mem so it does not spill to Disk. We can Disk Usage But it is still using Hash Aggregate and came down from 5 minutes to 20 seconds. (Expected ~5 seconds). Attached plan after modifying work_mem
> 3. Disabled Seqcan/ nestedloop
> 4. Tweaked random_page_cost/seq_page_cost
> 5. Set default_statistics_target=1000 and then run vacuum(analyze,verbose) on selected tables.
> 6. We have also tested performance by increasing resources up to 4 vCPU and 32 GB RAM.
Would you provide your current settings ?
https://wiki.postgresql.org/wiki/Server_Configuration
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: pryzby@telsasoft.com, Prajna.Shetty@mindtree.com, tgl@sss.pgh.pa.us, Beenu.Sharma@mindtree.com, Pranabesh.Saha@mindtree.com, Surya.Susai@mindtree.com
Subject: Re: Performance issue post upgrade on Version 13 - Incorrect Estimation Cost choosing Hash Aggregate-Nested Left Loop Join
In-Reply-To: <20220324122414.GZ28503@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox