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 1t6Xcl-00Dgsi-6H for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 16:02:15 +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 1t6Xcj-002tjl-4e for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 16:02:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6Xci-002tho-KC for pgsql-general@lists.postgresql.org; Thu, 31 Oct 2024 16:02:13 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6Xcf-0041aX-Kx for pgsql-general@postgresql.org; Thu, 31 Oct 2024 16:02:11 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5cb15b84544so1371955a12.2 for ; Thu, 31 Oct 2024 09:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seiler-us.20230601.gappssmtp.com; s=20230601; t=1730390528; x=1730995328; 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=jZzOKHE7UPm3kfW8M1oD3PBem6RfZcxoR/XZzaqtvNQ=; b=aXiESFNUePR43Q5p81n8c5YBjMb4GUaBjqmdvjumLWA8EUMwn2F1duLbbxkjrEAKGf U9QYtdN80Bi5E7Uh33ru7mCKBlI9YIT3FZPB3BNtu8DZ+qiG3AOSZao80OWGfFNhi4Qs Qz3eshFfjePcztFpqNeRlWEkUq+S+imkDH9CxOuABI+F4zkiZDfSkiNBFeOOCjS+ymq2 psVmjrXH6rfE7or+rSJLjtvflufYGupJp1B+iGsxPNQ+y6RBsI0WGnycp5DHJM/tS/6G 1IlteROSY6aV3M32q5SBRvgya7hrugE6ecdOZtgEJ4SmRJlDAs13bKFGpwIF0zXaNkrl vfyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730390528; x=1730995328; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jZzOKHE7UPm3kfW8M1oD3PBem6RfZcxoR/XZzaqtvNQ=; b=CPLGVzwLO202ldyP6o97MDjeVsOnDlLOSPZOh5uMxfTDZreTKpaLHhYF6Z0lWdGck4 EP2FbaXTrd46RFGZCMRWdDUPXky3RN79bWsWDxKYvxHhFW0MC8Y5VJjLD57VdPGeU44I rXuv8Zm5J4Lb2d/aUyU5Wibx1hD65n4Yq3voZs4kqvjGCXuH/JkColnjnw2LbuFlkkA1 Pv4mAodSZAi2qbsQ5rI7u21Gpb19QhifDWp72TMDXG1weW47yj7B+Fkp/rqDlP2V0s7s YId+Rw2UQXC9bYKpTCanQyf11KzCSAM/ygQ6WpKYyH0JNET45sNPLxYCgtL6Fvzb06SK ObiA== X-Forwarded-Encrypted: i=1; AJvYcCW9EV3XM7CJR7M0qJGvlQwQWpcIZi7xa9N9dbC5LCbvoAQjBJjlZvl4TxuMQiw5IYdvZnXDRZ2NpY2G8ZE2@postgresql.org X-Gm-Message-State: AOJu0Yzte/lZxvPp2/SB2zM1auIkws41zkSt48e+HI7Ile9xoksQsh7f DF5uwzRfyCaZX1aJAZTxOlKL0xV+UOc/0UhIvhbLHBsuBwCwCEoARDvi+JpATFvALdWBjGaqZow zboFwEyWllDT8gD7KP9AYoHFMikqzcQR/9cpFhrDeUdJF/Y0Q X-Google-Smtp-Source: AGHT+IF9HSHo2fVYd48ygo8JANeXk8USHNpf9stuuplI/tKlX/1NIb/jl5bWA3/GSWFz02cr2Gvzw/UJFmANO0Qhba4= X-Received: by 2002:a17:906:c108:b0:a9a:a32:bbe4 with SMTP id a640c23a62f3a-a9e654910a8mr44457266b.12.1730390527630; Thu, 31 Oct 2024 09:02:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Don Seiler Date: Thu, 31 Oct 2024 11:01:55 -0500 Message-ID: Subject: Re: Index Partition Size Double of its Table Partition? To: David Mullineux Cc: Peter Geoghegan , Postgres General Content-Type: multipart/alternative; boundary="000000000000b8fd530625c7f04c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b8fd530625c7f04c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 30, 2024 at 4:59=E2=80=AFPM David Mullineux = wrote: > Are you able to cluster the table ? The idea 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 monthly partitioned table, going back years. We don't drop old partitions (yet) on this one. For now we've only added this index to a few individual partitions. The hope was to add it to all of them and then eventually the template (using an older version of pg_partman). Don. --=20 Don Seiler www.seiler.us --000000000000b8fd530625c7f04c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 30, 2024 at 4:59=E2=80=AFPM David Mullineux <dmullx@gmail.com> wrote:

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

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

Another bit of useful info that I should have sha= red immediately is that this is a monthly partitioned table, going back yea= rs. We don't drop old partitions (yet) on this one. For now we've o= nly added this index to a few individual partitions. The hope was to add it= to all of them and then eventually the template (using an older version of= pg_partman).

Don.
--
Don Seiler
www.seiler.us
--000000000000b8fd530625c7f04c--