pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: thayanban thay <thayanban96@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Postgresql Upgrade from 10 to 14
Date: Sun, 09 Apr 2023 13:32:55 -0400
Message-ID: <3813249.1681061575@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJQyGgZTQP4hL4n9Vo54jMgx+dX+qDpR=HLLMP4B=Ha-1zmhhQ@mail.gmail.com>
References: <CAJQyGgZTQP4hL4n9Vo54jMgx+dX+qDpR=HLLMP4B=Ha-1zmhhQ@mail.gmail.com>

thayanban thay <thayanban96@gmail.com> writes:
> Issue: We upgraded postgresql from 10 to 14 version, post to the upgrade ,
> queries are running very slower than normal expected time. As well as the
> queries are not getting completed . We did vacuum analyze, index recreation
> and analyze statements etc but no luck still the job queries are running
> slower like 10hrs , 14hrs . So please help what we need to do to fix the
> issue.

You are unlikely to get any useful advice when you've provided no details.
You need to identify which query or queries has gotten slower, and post
the problem queries along with related table schemas and EXPLAIN output.
See

https://wiki.postgresql.org/wiki/Slow_Query_Questions

for some advice about how to ask answerable performance questions.

Just a shot in the dark: some people upgrading past v12 have found that
queries using WITH got slower because WITH clauses can now be inlined
whereas the previous behavior was always the equivalent of WITH ... AS
MATERIALIZED.  The new behavior is usually better but we have seen
cases where it loses.  Your issue could be something else entirely
though.

			regards, tom lane





view thread (3+ messages)

Message-ID: <3813249.1681061575@sss.pgh.pa.us>
Permalink:  ../3813249.1681061575@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3813249.1681061575@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 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: tgl@sss.pgh.pa.us, thayanban96@gmail.com
  Subject: Re: Postgresql Upgrade from 10 to 14
  In-Reply-To: <3813249.1681061575@sss.pgh.pa.us>
  References: <CAJQyGgZTQP4hL4n9Vo54jMgx+dX+qDpR=HLLMP4B=Ha-1zmhhQ@mail.gmail.com> <3813249.1681061575@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