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 1t6BZI-00BDrR-Vl for pgsql-general@arkaria.postgresql.org; Wed, 30 Oct 2024 16:29: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 1t6BZH-00AdZc-7x for pgsql-general@arkaria.postgresql.org; Wed, 30 Oct 2024 16:29:11 +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 1t6BZG-00AdWl-OI for pgsql-general@lists.postgresql.org; Wed, 30 Oct 2024 16:29:11 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6BZD-003eKy-Lp for pgsql-general@postgresql.org; Wed, 30 Oct 2024 16:29:09 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a998a5ca499so908580366b.0 for ; Wed, 30 Oct 2024 09:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seiler-us.20230601.gappssmtp.com; s=20230601; t=1730305746; x=1730910546; 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=LBBuO6f5N/FZaMpXH72szBZmZpBacw8yoHEebGy9GD0=; b=1i/461vh8HikBQDVlf/7SDeD/Q0E8sSrUVZn0xQVL3p8GWt40O6VfflIxLBH1/IPZs 2zwVZevw9YwpwNKifE/hPETNIl+sgLRCKM0IRsky4v8unucCRXFJJOI7cqOA3XVSpRur iN4hXCLWcaqb1d69GVlGcCv24ItllgFPYpE8E0oG2/2uIH5PKoKPPxRZomCcE8mriyHX o6yHI0ElbkurJo1rsnV/w8WIGG2RSUdBNQiCsQus5qiOx0cPhfxrB+ST6ZVz5ULaXzPa tt5rNXFG1lu5rsbHTnlnIjg3hMaCzfb238iWFdkofmTCfygdhf0yEEDBaWX16JhvH0JT c3ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730305746; x=1730910546; 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=LBBuO6f5N/FZaMpXH72szBZmZpBacw8yoHEebGy9GD0=; b=bi4XDZbUYsU2dYIqqVlS+dOu475XlU82huDM4f65VwbYX8z5d6m31IRNJly63CSVWG v0YdnTtw+I0DXpY1IvV/kB2FioT/4qTcJcMYiO3b/qEfOqWiHtB+ZVTh8MTlMQixdrmx jVj3TvfCu15J49DdllP30kZ7nk8rDXV34wSBPbda5rZquIKGWqjzETeOHTlUtjB3Va+A J/0xB9FW9ORII0rYMNDBIhcYmbqu0iT4rely+Rq+bXyalPPXNlM9OFC1cmQvEJK6h5Bf b6q2xzyZRikoWFvSKq4qFb8qmvNvmYgrV0g2xIAfIQy7xj4gq9yml49SZeFE6Q9FUanp ci2A== X-Gm-Message-State: AOJu0YyTali/BBvhxxALECM1PYi3Vu5aB4/uYxVOq0lVEM0njiuqxHgS 2Ye3mrklse/Gf/bKyv4T1YxfrdNscmkICQhkVEv4pzW+LQ6GWpZL1CCWMIyYkfVZiNP0943XJK9 HRrG8yQKSTf3iyXjX+Mvof/1YxpiDX7UD3kQNtQ== X-Google-Smtp-Source: AGHT+IE3p733zrv/TdgiTnj+pmPUfr5RAKTszyFCrlM8YFLyav6z/SaZZH15QhCdQEu6p+/tmZ/OIL2i25tkjUNzS+8= X-Received: by 2002:a17:906:7315:b0:a99:33db:2035 with SMTP id a640c23a62f3a-a9de5f056d8mr1401088866b.26.1730305745821; Wed, 30 Oct 2024 09:29:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Don Seiler Date: Wed, 30 Oct 2024 11:28:54 -0500 Message-ID: Subject: Re: Index Partition Size Double of its Table Partition? To: Peter Geoghegan Cc: Postgres General Content-Type: multipart/alternative; boundary="0000000000005542bc0625b43341" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005542bc0625b43341 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 30, 2024 at 11:23=E2=80=AFAM Peter Geoghegan wrote= : > > If a substantial amount of the index was written by CREATE INDEX (and > not by retail inserts) then my theory is unlikely to be correct. It > could just be that you managed to absorb most inserts in one > partition, but not in the other. That's probably possible when there > are only relatively small differences in the number of inserts that > need to use of the space left behind by fillfactor in each case. In > general page splits tend to come in distinct "waves" after CREATE > INDEX is run. > What do you mean by "absorb" the inserts? It sounds like the answer will be "No", but: Would rebuilding the index after the month-end (when inserts have stopped on this partition) change anything? Don. --=20 Don Seiler www.seiler.us --0000000000005542bc0625b43341 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 30, 2024 at 11:23=E2=80=AFAM Peter Geoghegan <pg@bowt.ie> wrote:

If a substantial amount of the index was written by CREATE INDEX (and
not by retail inserts) then my theory is unlikely to be correct. It
could just be that you managed to absorb most inserts in one
partition, but not in the other. That's probably possible when there are only relatively small differences in the number of inserts that
need to use of the space left behind by fillfactor in each case. In
general page splits tend to come in distinct "waves" after CREATE=
INDEX is run.

What do you mean by "absorb&quo= t; the inserts?

It sounds like the answer will= be "No", but: Would rebuilding the index after the month-end (wh= en inserts have stopped on this partition) change anything?

<= /div>
Don.
--
Don Seil= er
www.seiler.us<= /div>
--0000000000005542bc0625b43341--