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.94.2) (envelope-from ) id 1t6XnV-00Di07-0O for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 16:13:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6XnS-00365Z-Td for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 16:13:19 +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.94.2) (envelope-from ) id 1t6XnS-00365Q-J5 for pgsql-general@lists.postgresql.org; Thu, 31 Oct 2024 16:13:18 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6XnQ-003oMs-Fw for pgsql-general@postgresql.org; Thu, 31 Oct 2024 16:13:17 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-7203c431f93so931796b3a.1 for ; Thu, 31 Oct 2024 09:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730391195; x=1730995995; darn=postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=P74//L4EWdbQ1nnIF4UZoBu6n1px6e2jNf5PnFHSpqY=; b=SV15W6Pk+2Nnk+WwGfj5IwoVt9smLw5UfvVqByCgwaNgLt519pZJEZynaELVTr1/ak ESv+//ogqy/CU6VdrL8y9p+DIe1kD2nByCRtoJ3bHTeg1BfJsugdSkpa6GlGhVRTIcPV moWHRJD/er9NS24iczvJ6GjochuvrB5M4WarCSjJ03J7j8P8O6pGMeT5P9E1tjhuY5Tz oJkhJWVCQUSBx9OS/0NUEpyPHxsMrFsMf2ZAqzKnpM418mE2xiH0CUsgkN3/lJ9Qilyv jJ2MWYJlzPEAeRUABYihd5QG60TcNOFRv7z6fpWukFoHL/H5VDJkM79q7xfcPDmc+rgR TzDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730391195; x=1730995995; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P74//L4EWdbQ1nnIF4UZoBu6n1px6e2jNf5PnFHSpqY=; b=NBU68xJp24tTEMWqlHnrVacL2+426SC3F9AxDFAOJkSaZcJLpkZRb0gp+CdzRDuxrU v07zS5E+xEkwiUeCwx1vjmSHanrZqHW3+EUhECMrLQpfPzrAnnvKYDN1Ax8XVEcq66PF eKcT+ynwvwhudJBI4r9MsLw/ZfClaYuKmCJoNlbM+UuBhYIsXh2J2hBaxRRBYyLGlCB3 YbjTWRbRcvUpUiya1RJwQudN0jR/jjbgTk1Ka1nMiKtMaB4mHccyn4A0wfh9ard6+Oav scJ+sWbZro/5XNIZ2fpuyMJHOSSvABqtp7WkX+3EwYiqxtl3ZDnRQ/9M82DmqQI4W7Bv ncDQ== X-Forwarded-Encrypted: i=1; AJvYcCVePXb3EXJbHvG4CVubhaWNpAfjhz05XyjNrVw4Z/Ol3bQCYIRALxsqMVnKysUi7qSd1pcAcPTwXANXdLe2@postgresql.org X-Gm-Message-State: AOJu0Yyxva04AwKtZYHYemQUYKE+s15WhVh29dSPATgGn/ntYOTHsstN 3GAj8Gnfjn9LhKXEcQUYcnVU6z3KjvS5NnzCfC0mjKh+flTlZHbn X-Google-Smtp-Source: AGHT+IHxt45O3EFmiEqqRpDikgK2WqW/C/DiLQsz1sfC81B0EmUlexo8bPduD/qbvJFj66X7wGuyeA== X-Received: by 2002:a05:6a00:2d18:b0:720:aa27:2e45 with SMTP id d2e1a72fcca58-720b9c2907dmr5218218b3a.14.1730391195100; Thu, 31 Oct 2024 09:13:15 -0700 (PDT) Received: from smtpclient.apple ([2601:681:4c01:7310:b9fb:4e4f:4ba7:a329]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc1efc0bsm1295267b3a.86.2024.10.31.09.13.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Oct 2024 09:13:14 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-BFA07331-786C-46B7-95ED-890100B3C86D Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Index Partition Size Double of its Table Partition? Date: Thu, 31 Oct 2024 10:13:03 -0600 Message-Id: References: Cc: David Mullineux , Peter Geoghegan , Postgres General In-Reply-To: To: Don Seiler X-Mailer: iPhone Mail (21G93) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail-BFA07331-786C-46B7-95ED-890100B3C86D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On Oct 31, 2024, at 10= :02=E2=80=AFAM, Don Seiler <don@seiler.us> wrote:

=
=EF=BB=BF
<= div class=3D"gmail_quote">
On Wed, Oct 3= 0, 2024 at 4:59=E2=80=AFPM David Mullineux <dmullx@gmail.com> wrote:

Are you able to cluster the table ? The i= dea is that rows ordered in the same way  as the index might reduce it'= s size ?

I'm not sure on this. There are other indexes= on these table partitions as well.

Another bit= of useful info that I should have shared immediately is that this is a mont= hly partitioned table, going back years. We don't drop old partitions (yet) o= n this one. For now we've only added this index to a few individual partitio= ns. The hope was to add it to all of them and then eventually the template (= using an older version of pg_partman).

Don.
--
Whats the fill factor?

= --Apple-Mail-BFA07331-786C-46B7-95ED-890100B3C86D--