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 1sXD1l-002Qom-36 for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jul 2024 04:58:01 +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 1sXD1j-005Ecf-Hq for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jul 2024 04:57:59 +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 1sXD1j-005EcT-1o for pgsql-admin@lists.postgresql.org; Fri, 26 Jul 2024 04:57:59 +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 1sXD1g-001Vpj-Jy for pgsql-admin@lists.postgresql.org; Fri, 26 Jul 2024 04:57:58 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5a10bb7bcd0so2132212a12.3 for ; Thu, 25 Jul 2024 21:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1721969875; x=1722574675; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=G6ulIy0BJ5dw0heG9utQEWCdQ3izV9xi306KpDkiXLk=; b=1b69vDPtfsjfUXFat/aD3zTgp5hgpkjj2ZZ2+IL+Zzs8C1SMJZC9xdthoCZhBVDXjE 8x6FrXh7WcMj5uJuO6u00SMMZdqp9//RYSxbxsqxsRuJY1ndDTTyo64Atql2k8yE9iSp RE3KJWWMh6mFd+a6ofrWC61+PwGnIHK669cqZcuHDHOOBrv2aj41elLb+iB2H3DQhCVX IPW6Si67clDjQh33phajvLaPUv1yuItbDf9uwV/6qvPAHwWv2lY1iJuFqmrO5QvhOVe1 bJi/dTHh5TnaMJM2TlbOttttOY1xRxbvQmZjPyUIPmG++Jes4RPLZX6TRIQeWWbAqUcQ bMTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721969875; x=1722574675; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G6ulIy0BJ5dw0heG9utQEWCdQ3izV9xi306KpDkiXLk=; b=T4wRPYEOFghlDiZBvLHqF+cQPQOhR03ZYhmiUQYf9ltb9Z1rRXaiA/1ocR85a2Pz5t mTTbBuhximVkvAv8kvP0wC48HzAMXI1oA5ky/zmfQHM1clLaAoPOEKXNkbEuZxEzJ8dR vakm9y6w8KqGGYQdMYNvVlKl5rCoiVfN9O1z1IyT0rikE3+9wF8rlHp7X0QiLXpnQATm 8I3IHYc3HNFPKtKs/xx2Opo0n3ehIJ6bnKKHSRWwDrPf8vJERQloHqwgKCjGrson+KYi w79tl3TbPfsZQX2F/kTz0oO0kv85Oc+SZu+4ZZqvHJaGFy/7Uc9tkjM9JDjYI3WaYcxy zkog== X-Forwarded-Encrypted: i=1; AJvYcCViikw8HRrCAWmfqflfFzif82tbvLOqRURi/e6i2E48erAkD+8jtjZHP+f6R3dpjTcDlLzthEgrxcVYRGhq9KxgI/2I4QkUaLWP81kNYOAX3Q== X-Gm-Message-State: AOJu0Yzco+QthGkq7wlrIdr2G5l0q9womFOWoVpXrTQBPVLqiuug5khp J2ukYnyfwhjzxe/Ke77yl/WNcaVlnvWQZLqcoAGMBYfEySEJzQxEmu4L5qbkm1g= X-Google-Smtp-Source: AGHT+IGE1mhyawET63b4u8K+v5nQn3x+ILlPCtAJ2cpGt6k3I0/QWlFCoxChYSun8K/qEUZpqIDOxQ== X-Received: by 2002:a17:907:720d:b0:a6f:6126:18aa with SMTP id a640c23a62f3a-a7ac50708e6mr378946266b.67.1721969874805; Thu, 25 Jul 2024 21:57:54 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:5e:1fa7:3178:1dcd:ea7a:2f81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad91080sm133893066b.160.2024.07.25.21.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 21:57:54 -0700 (PDT) Message-ID: <5e5adf91196fadea03bc20575f6fc88cf003df5a.camel@cybertec.at> Subject: Re: How to detect if a postgresql gin index is bloated From: Laurenz Albe To: Keith Fiske , khan Affan Cc: "Wong, Kam Fook (TR Technology)" , "pgsql-admin@lists.postgresql.org" Date: Fri, 26 Jul 2024 06:57:53 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (3.52.3-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2024-07-25 at 23:01 -0400, Keith Fiske wrote: > Any more insight on how to use those two options to actually calculate GI= N bloat? > From what I could tell pgstattuple didn't provide anything that could be = used. > I hadn't looked further into the other yet, but if you know how to do tha= t already > that info would be great. I don't think that there is anything smarter than to create a new index wit= h the same definition and see if it is much smaller than the original index... Yours, Laurenz Albe