Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWKVW-00H7UP-22 for pgsql-general@arkaria.postgresql.org; Thu, 18 Dec 2025 20:21:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vWKVV-0046fK-1k for pgsql-general@arkaria.postgresql.org; Thu, 18 Dec 2025 20:21:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWKVV-0046fC-0i for pgsql-general@lists.postgresql.org; Thu, 18 Dec 2025 20:21:53 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vWKVU-001O55-2F for pgsql-general@postgresql.org; Thu, 18 Dec 2025 20:21:53 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-42fb5810d39so508624f8f.2 for ; Thu, 18 Dec 2025 12:21:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766089311; x=1766694111; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fiwtb/6wgX9X074afUVFg7g7Jf2UX/dUZ/bRUf2SrRY=; b=ASaUU5AtfOTQ1aFQIl66SNQ9ry9NIsug1UbSg1D5V1cvusNHDc1+YbgwD/gUL+FXxz 72onMJUdelWkIoU7P9twBrL2s0+HHFx2KxLmMFWT5qL6rCJf1zFYFBU57atgoZ1WiZ0p OQFxcX+ZGisSsmQoCA//xe1vgwwmv1ffOyx19mnPaqrMf/26Xkwte4BALmlUskLQBUiA m+3pMMDq+c7U7V0YicZAvvGzSv33yp6XiqOb2LtIZDwpWLyIHMZAIYncdnqbeqFPujY8 QxpWo/fLFnhAlVABtMiLx+s31Pc32IksDHHto8x3bRb+CL4qs9x+YbRTG2vbAZTtTtmv iTFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766089311; x=1766694111; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fiwtb/6wgX9X074afUVFg7g7Jf2UX/dUZ/bRUf2SrRY=; b=r3n/TtUHKX8g4f2Vv9bNhGl9GzpynNGgjZl8wmlqzSqpVDA8PBWdUR7f3uujKOdoRs 2xAheNp9WNHxauyBwve/occ38KJavR1jetNrP/TEOzBXZyx731QCBGJeVwo+7Cx0EIoc l1Q1t4Ldz0nwT4Nk1P6AV2JzxwKSRzUOc5FpUT1z3/XWngXVRpkEiQ2t1I3vJPfHWoX5 E6+tWvOJYocaVTtIxiJuHxCjzjhq/YnOdj9s+avjKNjjS+dv2NJaSNvfxghBoDFEZChP uUcf3Wn8G3HqfbXiZEbtgBNyJ59/efrFrkqmTLHkaNXbdc3HKSomiWz88KhDdh5Lfb0J 8qIA== X-Forwarded-Encrypted: i=1; AJvYcCXIt8wGJ7xRSu43X+aKx3xhFLe6IVyZNOcLwTvA89DC05UdojBYqGLWwWqmz23TV/3oWyNSBGkaaDDmZDfn@postgresql.org X-Gm-Message-State: AOJu0YxhDl2IUF/4cs4tIAGRBXLSA5pp75eYpRkPHY+asUHpZ9t/TrZl rg7pVBlA3qxo4NVLoeyfkx5LOuSo8Dzt1cAJ3206NEMulY3DWoJZL9cHqtUWYdb2vNeh6Ys4Wk5 s61jWSxYNM4LUli40d2cteGo+ZYIRZ+Vclw== X-Gm-Gg: AY/fxX5CZuKo/yOFJAepIOtwoMdyBxueDwo0D52L5VJ2FarF6BRV5Hw0GDn5Hjxpk/q yX5mNiS3J1PzgScBtmE+OC9pYesMVyeYkzJiTB2s/3R2aOW+nPmdlBV7c5jLYi6z3lYohQ7I4Hg Ch2w0UlJAhIC5DhvF6ZMg5trvSvsukg4a5TQw9YmnqIMA1lz7Ms/kDY8dmlvWDvMwr+1EN3Mgpd IDXvWHVnRIpH6D8FKmT32wOufi0Cs2YuJ13NvLaG7AwcXi39FVcvsURUEH+ogBMburFfSSULWH+ 80h6/tuA1pe517Ihk92c8DoDxYBJehBhYP57Bebn64a3A1e6sRfL6ZY7rWz/CQ== X-Google-Smtp-Source: AGHT+IHcR/Y3DfzkDybUqfGz3omlbyB2b2gmtlzfp+e3DE6d4k6S9KP4BoMVVxUvmEQ9622A3uABHZac6LK9oE/uYz0= X-Received: by 2002:a05:6000:2dc7:b0:430:ff0c:35fb with SMTP id ffacd0b85a97d-4324e50d03dmr730382f8f.52.1766089311004; Thu, 18 Dec 2025 12:21:51 -0800 (PST) MIME-Version: 1.0 References: <87bjjv1v96.fsf@gmail.com> In-Reply-To: From: David Rowley Date: Fri, 19 Dec 2025 09:21:41 +1300 X-Gm-Features: AQt7F2oo7o9VxWEY3uN8KbwlA9FbW81WssHVjmH6DH4atJ_xweM3mtwY-Pl48Ys Message-ID: Subject: Re: Dealing with SeqScans when Time-based Partitions Cut Over To: Matthew Planchard Cc: Ron Johnson , pgsql-general Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 19 Dec 2025 at 08:55, Matthew Planchard wrote: > > How about just force seqscan off when the table is created? > > ALTER TABLE 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. David