public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: Dealing with SeqScans when Time-based Partitions Cut Over
Date: Thu, 18 Dec 2025 17:55:53 -0500
Message-ID: <CANzqJaCzMGpNhDfD2uZCidGVKFtfrGX1K+C0u1o6_MKeqMob-A@mail.gmail.com> (raw)
In-Reply-To: <CAApHDvoszp3fhsJQ759SkpYpJsn8ZcLXB26oR0sxXV-EavWKfQ@mail.gmail.com>
References: <[email protected]>
	<CANzqJaAXhYwR6vHzm_DqnxmWk8QCYxEmhs_JeZ+w3F+rx09xSw@mail.gmail.com>
	<CAHncFmSsXwmLCKs-ySFWe=gjb=rSaSsVZQV6hJuDczhLixidqA@mail.gmail.com>
	<CAApHDvoszp3fhsJQ759SkpYpJsn8ZcLXB26oR0sxXV-EavWKfQ@mail.gmail.com>

On Thu, Dec 18, 2025 at 3:21 PM David Rowley <[email protected]> wrote:

> On Fri, 19 Dec 2025 at 08:55, Matthew Planchard <[email protected]>
> wrote:
> > > How about just force seqscan off when the table is created?
> > > ALTER TABLE <table_partition> SET (enable_seqscan  = off);
> >
> > I didn't know this could be set on the table level! Our partitions are
> > created by partman, but we have a nightly job that does maintenance
> > stuff that could go through and update this setting on future partitions
> > before they come into use. I'm always hesitant to mess
> > too much with the planner, but this might be the ticket.
>
> You thought correctly. There's no such reloption.
>

Ah well.  I should have known that would be too easy.

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


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: [email protected]
  Cc: [email protected]
  Subject: Re: Dealing with SeqScans when Time-based Partitions Cut Over
  In-Reply-To: <CANzqJaCzMGpNhDfD2uZCidGVKFtfrGX1K+C0u1o6_MKeqMob-A@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox