pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Ram Pratap Maurya <ram.maurya@lavainternational.in>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17059: postgresql 13 version problem related to query.
Date: Tue, 15 Jun 2021 15:54:35 -0400
Message-ID: <439507.1623786875@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRAJu00202QkAGNXQQrvyqSuLH9HbWxpk1++kt4bhvB1Zw@mail.gmail.com>
References: <17059-c96d70e84d7bb4ce@postgresql.org>
	<CAFj8pRB7-UCRiPhe9E5L=q_07QB-0p9ZgH_kSqaewWcYC8-fHA@mail.gmail.com>
	<KL1PR0601MB443311C42FA40585125D1E0AF0309@KL1PR0601MB4433.apcprd06.prod.outlook.com>
	<CAFj8pRAJu00202QkAGNXQQrvyqSuLH9HbWxpk1++kt4bhvB1Zw@mail.gmail.com>

Pavel Stehule <pavel.stehule@gmail.com> writes:
> Ășt 15. 6. 2021 v 21:36 odesĂ­latel Ram Pratap Maurya <
> ram.maurya@lavainternational.in> napsal:
>> Postgresql-12 :
>> ->  Index Scan using retailer_code_12390127_idx
>> on tretailer_mst retailerlist  (cost=0.42..5468.67 rows=146923 width=25)
>> (actual time=0.018..180.502 rows=144211 loops=1)
>>
>> Postgresql-13
>> ->  Index Scan using
>> retailer_code_12390127_idx on tretailer_mst retailerlist  (cost=0.38..0.59
>> rows=1 width=684) (actual time=0.028..928.347 rows=221068 loops=1)

There seem to be rather serious discrepancies between rowcount estimates
and reality on the v13 installation.  Maybe an ANALYZE would help.

I'm also wondering why auto-analyze hasn't come along and improved
the situation.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <439507.1623786875@sss.pgh.pa.us>
Permalink:  ../439507.1623786875@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/439507.1623786875@sss.pgh.pa.us

 · 

reply

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, ram.maurya@lavainternational.in, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17059: postgresql 13 version problem related to query.
  In-Reply-To: <439507.1623786875@sss.pgh.pa.us>

* 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