From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arthur Ramsey <arthur.ramsey@code42.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Table scan on 15.2
Date: Wed, 15 Mar 2023 12:03:22 -0400
Message-ID: <3337979.1678896202@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEJqy4WBz=C67tJ4Sjq_T0yTwO0b7_ye34xVY7cxrSDXqnucjg@mail.gmail.com>
References: <CAEJqy4WBz=C67tJ4Sjq_T0yTwO0b7_ye34xVY7cxrSDXqnucjg@mail.gmail.com>
Arthur Ramsey <arthur.ramsey@code42.com> writes:
> I've upgraded from 12.11 to 15.2 and I'm seeing this query now use a
> sequential scan which is taking 500ms instead of < 2ms. If I disable
> sequential scans then it performs as well as 12.11.
What does the EXPLAIN look like with seqscans disabled?
regards, tom lane
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, arthur.ramsey@code42.com
Subject: Re: Table scan on 15.2
In-Reply-To: <3337979.1678896202@sss.pgh.pa.us>
References: <CAEJqy4WBz=C67tJ4Sjq_T0yTwO0b7_ye34xVY7cxrSDXqnucjg@mail.gmail.com> <3337979.1678896202@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