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 1uFFCL-0023ni-DF for pgsql-novice@arkaria.postgresql.org; Wed, 14 May 2025 16:43:13 +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 1uFFCJ-00AQjA-8Y for pgsql-novice@arkaria.postgresql.org; Wed, 14 May 2025 16:43:11 +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 1uFFCI-00AQj2-WE for pgsql-novice@lists.postgresql.org; Wed, 14 May 2025 16:43:11 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFFCG-001t53-0Z for pgsql-novice@lists.postgresql.org; Wed, 14 May 2025 16:43:10 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3da831c17faso13011565ab.3 for ; Wed, 14 May 2025 09:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747240987; x=1747845787; darn=lists.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=kZ/8kaPCoqiOhZKUE5NaStUVI4Hz6eO9CZoLvnWRZ/0=; b=f1UKChPOM1M/nOst8b5xUxTByNBYntMVfqarJ6CQ6Cd8yGs27AvQ4u5q/LY2OqVSVW F0THhQuSe/brqNU/Vb+9SrH0xq0nJ5uqBeYOSDSUi+zVx8oeHCYTGoJA6Z9C57EPFZ8C x7mdKVfu6Wu3+SkIWd09xAzmnnpjqxwEdysCGN1ti6RHHy0zl2HzVMcG3Qkp2iL4RoRf Zk8AfiDhnFNVeFT4qOHSEOhzUtHiNzHidYOKrjySeAeNVrHOKaMP0YXX65PGaEyYj/Gn gIRPVnlCsBKP8sPtR/pC7IR/4si7NMJobXbp/2iTdTVyvDdPeY1Xpvlsrsc2chszD89e niLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747240987; x=1747845787; 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=kZ/8kaPCoqiOhZKUE5NaStUVI4Hz6eO9CZoLvnWRZ/0=; b=qvXuysWYCHyH4W4QHauJWdsvaUz4+w3TVgro6jSa1wtr/rMicTYMVOoBHbPCdeAIpO ksVYKTi2YvDFR86jhthhG02PlNIeTk5FCl2BgHRtFNF1sqRzMWCmMghtSjAb4IxK9JTR dRUKhFlx2WYoc+Zpav+vGDF/CmmtMzoMPWZsmS1QP6wdOV4DKtF1iTejbUHgYy3KKf3I Xjwzohm0h363NcIo7j6qmORMsuW2i+Gsknr29enh9eWCBFHcZVUTF8U264ZvcX2xoD0I YLL9lV4f0DKWc59Gew/QDMj/5ql8xkNuHK2VbtIEeTgC6qgOAaUzN9KQUec2aHWEH6eQ Dx6w== X-Gm-Message-State: AOJu0YxhQs+zlrmdvZoUG+aCgii+sLsapVYyROMlvNZIsmjkTKQE0NGK dpmnUc4/zI2WQCZa/YNyyn/7IIktmua+WuhN7Wg8W0Qv3oGleoGCyYT9BRqAwcgc82g8Ijvn9ul I06nONzWa/u8j+xBd9ixi6A/yZSA= X-Gm-Gg: ASbGncvrscrMCJjwB+DFC23xwPOSYcP/gsmL26OwEMVau0EOcgFn+7A9oR4K0lKac7N 6Y/ESmrx1oJxwEk1B/MEQ/EDUqC0v/uDIYBhgVDg8PstrYrKGfmayAOeYOMj9VvrRgqTFKEK23t cG3+q9w+xEpIS2mts50XBEm3mIAp+RB5RdEwK8qTJyMcNw4gMGnP0xrfPhLPzkXx6oLg== X-Google-Smtp-Source: AGHT+IHDDLzyZKmHqGU3BH9CutIKiONozuV5XQxkSRkoVsM89z1W5TQhiA/ItCivje0NLYRRybTVGvogLiSikzKA1k4= X-Received: by 2002:a05:6e02:3e8d:b0:3d3:fbae:3978 with SMTP id e9e14a558f8ab-3db6f79e8e2mr46566155ab.9.1747240986987; Wed, 14 May 2025 09:43:06 -0700 (PDT) MIME-Version: 1.0 References: <20250514112913.416cfc8f@msi> In-Reply-To: <20250514112913.416cfc8f@msi> From: Greg Sabino Mullane Date: Wed, 14 May 2025 12:42:31 -0400 X-Gm-Features: AX0GCFuc3Q79h3bewss7GWpeqPCqRnLhgQMLUy10hf9eVm-A0_lqtqdPGumtTLc Message-ID: Subject: Re: Fillfactor question To: Bzzzz Cc: pgsql-novice@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000005dd06106351b3e65" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005dd06106351b3e65 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 14, 2025 at 5:29=E2=80=AFAM Bzzzz wrote: > does creating a table with fillfactor=3D75 automatically propagate to its > indexes or am I obliged to also modify their fillfactor accordingly ? > They are separate, so you will need to modify both. Here's a quick example: greg=3D# create table bzzzz(id int) with (fillfactor=3D75); CREATE TABLE greg=3D# create index bzzzz_index1 on bzzzz(id); CREATE INDEX greg=3D# create index bzzzz_index2 on bzzzz(id) with (fillfactor=3D42); CREATE INDEX greg=3D# select relname, relkind, reloptions from pg_class where relname ~ 'bzzzz'; relname | relkind | reloptions --------------+---------+----------------- bzzzz | r | {fillfactor=3D75} bzzzz_index1 | i | =E2=98=83 bzzzz_index2 | i | {fillfactor=3D42} (3 rows) Tables and indexes are both technically "relations", as seen in the pg_class table above ("rel" =3D "relation"). An index points to specific columns in a table, but otherwise is very distinct from it and no inheritance flows either direction. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --0000000000005dd06106351b3e65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, May 14, 2025 at 5:29=E2=80=AFAM B= zzzz <lazyvirus@gmx.com> wro= te:
does creating a table with fillfactor=3D75= automatically propagate to its
indexes or am I obliged to also modify their fillfactor accordingly ?

They are separate, so you will need to modif= y both. Here's a quick example:

greg=3D# create table bzzzz(id int) with (fillfactor=3D75);
C= REATE TABLE
greg=3D# create index bzzzz_index1 on bzzzz(id);
CREATE I= NDEX
greg=3D# create index bzzzz_index2 on bzzzz(id) with (fillfactor=3D= 42);
CREATE INDEX
greg=3D# select relname, relkind, reloptions from p= g_class where relname ~ 'bzzzz';
=C2=A0 =C2=A0relname =C2=A0 =C2= =A0| relkind | =C2=A0 reloptions
--------------+---------+--------------= ---
=C2=A0bzzzz =C2=A0 =C2=A0 =C2=A0 =C2=A0| r =C2=A0 =C2=A0 =C2=A0 | {f= illfactor=3D75}
=C2=A0bzzzz_index1 | i =C2=A0 =C2=A0 =C2=A0 | =E2=98=83<= br>=C2=A0bzzzz_index2 | i =C2=A0 =C2=A0 =C2=A0 | {fillfactor=3D42}
(3 ro= ws)

Tables and indexes are both technically= "relations", as seen in the pg_class table above ("rel"= ; =3D "relation"). An index points to specific columns in a table= , but otherwise is very distinct from it and no inheritance flows either di= rection.
=C2=A0

Cheers,
Greg

--
Enterp= rise Postgres Software Products & Tech Support

--0000000000005dd06106351b3e65--