pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Charles <peacech@gmail.com>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Query run in 27s with 15.2 vs 37ms with 14.6
Date: Tue, 21 Feb 2023 11:35:54 -0500
Message-ID: <Y/Ty6roAf76C6Pzw@tamriel.snowman.net> (raw)
In-Reply-To: <CABthHP-XJXF8L_GLnWvU6Mm09B3_gJV8fy1uAPOFhLrAOPopLg@mail.gmail.com>
References: <CABthHP8Maot3JBq6jMfcrW0Y2xPftnQsi=2qCPQ=SkKbqnkt6g@mail.gmail.com>
	<CAMkU=1xDZnL_=2BrMnOd2FgZ62G=qqhFD+ZtxC-74Mnu-qOPuQ@mail.gmail.com>
	<CABthHP84n1-aM5CV5RLJt2L9+9QG7Zp2EHsHf8tqHS04qASqrw@mail.gmail.com>
	<CAApHDvodhLNtvg+2CFLDWMEHg97n248B0WcN1WHN+uH2WomSjA@mail.gmail.com>
	<CABthHP-XJXF8L_GLnWvU6Mm09B3_gJV8fy1uAPOFhLrAOPopLg@mail.gmail.com>

Greetings,

* Charles (peacech@gmail.com) wrote:
> Thank you for the hint. I think this is it. random_page_cost was set to 1.1
> in 14.6 (the data directory is located in a ssd). When upgrading to 15.2 I
> thought that ssd random seek time is not that close to sequential seek
> time, so I revert it back to 4.

In the future, you might want to be sure and include 'settings' in your
EXPLAIN options, eg:

EXPLAIN (ANALYZE, BUFFERS, SETTINGS) query ...

so that you see what non-default planner settings are set when the query
is being planned.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (14+ messages)  latest in thread

Message-ID: <Y/Ty6roAf76C6Pzw@tamriel.snowman.net>
Permalink:  ../Y%2FTy6roAf76C6Pzw@tamriel.snowman.net/
Also on:    postgresql.org/message-id/Y/Ty6roAf76C6Pzw@tamriel.snowman.net

 · 

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: sfrost@snowman.net, peacech@gmail.com, dgrowleyml@gmail.com, jeff.janes@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Query run in 27s with 15.2 vs 37ms with 14.6
  In-Reply-To: <Y/Ty6roAf76C6Pzw@tamriel.snowman.net>

* 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