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 1t6AjC-00B8Z1-7U for pgsql-general@arkaria.postgresql.org; Wed, 30 Oct 2024 15:35:22 +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 1t6AjA-00A34W-GJ for pgsql-general@arkaria.postgresql.org; Wed, 30 Oct 2024 15:35:20 +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 1t6AjA-00A34O-0k for pgsql-general@lists.postgresql.org; Wed, 30 Oct 2024 15:35:20 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6Aj7-003qIv-MA for pgsql-general@postgresql.org; Wed, 30 Oct 2024 15:35:19 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43155abaf0bso65731225e9.0 for ; Wed, 30 Oct 2024 08:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20230601.gappssmtp.com; s=20230601; t=1730302516; x=1730907316; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6FDh1KqELFRTN2guhB1xOHyKiV19Vm2z6rgCcD0KkTI=; b=vZrYe/xNsJvGA0sMJFkbqejflkNxcVxuAGSOOeW/ShaeEGqkDqA0c8Dtg8weDnh15u uYg01whBT5kkt7idxgRKXzTFL/usaeB+Jc9HtSl/xsjtR87T6SkLcnwfH/mub6XRnRkZ uPCM8OhBqfMDZL70egYEl3lPNnq5/SBausSHBaIdghhFGdmWZbTkZpY66EN8Q3iAwan6 wHZ9BAoD2+baYm0Khb40cqAjcoZNGk1DHJSJ3Y9scSfSgPfYMRczNIAnHbeozOXu/5Xf 3nPZq7I9rwRHyKpLHolMTjvq/8r2LJPEs+UQ6XSO2c07kj68cspDywcmHSFl9tGAkHyr mCyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730302516; x=1730907316; h=content-transfer-encoding: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=6FDh1KqELFRTN2guhB1xOHyKiV19Vm2z6rgCcD0KkTI=; b=iawcpQB3mJTg/UITb4vWwWJcc+qEUKqbR+UZg6bC4gFdHaxkSOFqcHTn9uVdHbyHx8 oc42okTmSXBGxtySkpCesIdCClLuZ6daHCS/UheGDhPibadFpSA86AI7CX4gbMJL+pS3 pLeizJdyYj3/YdhhJqmUTs5yX4T3TPeprTCK+nmbKirNT+LuOCwbTkb9kxKCpjXT6lh4 bIzLW/rqV39F/DvxT9pIpY02xYsBaFPzYODkPcugepMi3zU7xMDWpNpKXfBj2dV8wtCt n7/jwld7revAHTk3F0hpwNYMhqsc9jMvU/xkGIfPDgvG/nLWj5eu4i6RwJZdEmhzNCTd JemQ== X-Gm-Message-State: AOJu0YykMJxwBhZl3tzeSRh6XVRybs9qmCM6BrSCSZCnPXpaP5KLVsbq 2ENOqf06Qit7tmelgara7Q05Nvj8bDvf7PvQgriFbY5/JCwN7fvNbr+EtB5CgMSshlhpynZiRgw 6XhZ4ebyFQdVf5MCL9FpRW+wVhvut6Z9I2exkv5W/sTN3wR7O++g= X-Google-Smtp-Source: AGHT+IGMySPKS57+C2f1WIhi01KgBFXUQe6aGmUj/YpRXfXhkwUCj5NzgveuVmVb8YtEm46PaZ17Mbk8luzZkz4AVYU= X-Received: by 2002:a5d:4f92:0:b0:37d:3985:8871 with SMTP id ffacd0b85a97d-380611dbea7mr11012390f8f.39.1730302516392; Wed, 30 Oct 2024 08:35:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Geoghegan Date: Wed, 30 Oct 2024 11:34:50 -0400 Message-ID: Subject: Re: Index Partition Size Double of its Table Partition? To: Don Seiler Cc: Postgres General Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Oct 30, 2024 at 11:24=E2=80=AFAM Don Seiler wrote: > One thing worth mentioning is that the table is 4 columns, the index is o= n two of them and includes the other two. I can't think of an explanation f= or the index being so much larger than its table, especially compared to la= st month's index. > > Curious if anyone has any thoughts on what might be causing this. You mentioned that this has 4 columns. Sounds like this could be a "locally monotonically increasing index". I wonder if you're benefiting from this optimization, though only inconsistently: https://www.youtube.com/watch?v=3Dp5RaATILoiE&t=3D2079s https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3Df21668= f3 Of course, this is only a guess. I vaguely recall a complaint that sounded vaguely like yours, also involving partitioning. -- Peter Geoghegan