pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Perumal Raj <perucinci@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Performance Issue after upgrade from 9 to 11
Date: Wed, 29 Jan 2020 14:54:38 -0800
Message-ID: <8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com> (raw)
In-Reply-To: <CALvqh4o-eyy4tO-Ed=qaxw_Vo6o6xESNRt-dEKW57JMdUMnpMw@mail.gmail.com>
References: <CALvqh4rB4a71Cw+YiJ42PKaCrw7gDKzjyOgbZ4eMWTQmmVtoog@mail.gmail.com>
	<29032.1580322151@sss.pgh.pa.us>
	<CALvqh4o-eyy4tO-Ed=qaxw_Vo6o6xESNRt-dEKW57JMdUMnpMw@mail.gmail.com>

On 1/29/20 1:58 PM, Perumal Raj wrote:
> Hi Tom /Adrian,
> 
> Issue is not specific to a table or particular Query. Also there is no 
> change in DB parameter after upgrade.

You obviously are seeing some difference, so pick a query and do an 
EXPLAIN ANALYZE on it. Without some actual performance data this issue 
is not going to be solved.

> 
> That the only way i can make it most of the the query to run as like 
> before upgrade.
> 
> Note:
> Some web reference says , Engine will take some time to adjust until it 
> runs autovacuum .

The above assumes you have not done a manual ANALYZE on the database, as 
ANALYZE is done as part of autovacuum.

> 
> 
> 
> 
> On Wed, Jan 29, 2020 at 10:22 AM Tom Lane <tgl@sss.pgh.pa.us 
> <mailto:tgl@sss.pgh.pa.us>> wrote:
> 
>     Perumal Raj <perucinci@gmail.com <mailto:perucinci@gmail.com>> writes:
>      > We have recently upgraded postgres from 9.2 to 11.6 and started
>     seeing
>      > performance issue immediately and  able to fix the performance
>     issue after
>      > disabling parameter: enable_seqscan.
>      > Question :
>      > Should i keep the above parameter always disabled ? If not why
>     the behavior
>      > changed in Higher version ?
> 
>     This is unanswerable with the amount of information you've given.
>     Yes, turning off enable_seqscan is a bad idea in general, but why
>     you got a worse plan without that requires details.
> 
>     https://wiki.postgresql.org/wiki/Slow_Query_Questions
> 
>                              regards, tom lane
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)  latest in thread

Message-ID: <8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com>
Permalink:  ../8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com/
Also on:    postgresql.org/message-id/8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, perucinci@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Performance Issue after upgrade from 9 to 11
  In-Reply-To: <8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com>
  References: <CALvqh4rB4a71Cw+YiJ42PKaCrw7gDKzjyOgbZ4eMWTQmmVtoog@mail.gmail.com> <29032.1580322151@sss.pgh.pa.us> <CALvqh4o-eyy4tO-Ed=qaxw_Vo6o6xESNRt-dEKW57JMdUMnpMw@mail.gmail.com> <8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.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