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 1ui06O-006U6i-9y for pgsql-general@arkaria.postgresql.org; Sat, 02 Aug 2025 00:27:56 +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 1ui06N-00AGzF-4g for pgsql-general@arkaria.postgresql.org; Sat, 02 Aug 2025 00:27:55 +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 1ui06M-00AGz6-Po for pgsql-general@lists.postgresql.org; Sat, 02 Aug 2025 00:27:54 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ui06K-000IHN-1e for pgsql-general@lists.postgresql.org; Sat, 02 Aug 2025 00:27:54 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-23fc5aedaf0so17760395ad.2 for ; Fri, 01 Aug 2025 17:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754094470; x=1754699270; darn=lists.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=dZz2OAFNOvsRKYwjqcffgVIxMaW/VYtUdEj9+mAY1rg=; b=b3Er9LYtMj9ewk5M74zNCKyTJ2ek+FGOlkER5I42thsmBrvRN/hLtDKE1JmhI87fAE 4cN7lj49OWZK9vq+5xi5z1JzODCymTep+jItcFsnBPKZfd21H/W4dXSMg1p1gsNX8U0a GmX4qXV1X7uQaKJsuBaFfwjM9+BfB7syqSzxVqg39aAh1VJW0zNZVvlu2yyzFHcPzGIB 2t1lZ7bUTm1TYDMUjsw347LBOVE0u+AZHtj4s9UI/i/98VnWMdg8YdpZkn/zkWK+0Snq RetE+qCPoWaSUMT1fyIjsS77TAa4nN8VMUfXNqXhJWS6vKcsOAdYLq/LdWwcLeDJ/mEV Q91Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754094470; x=1754699270; 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=dZz2OAFNOvsRKYwjqcffgVIxMaW/VYtUdEj9+mAY1rg=; b=I476NfL2mkiwNGqQs6vYutvoBgMzVnYm7H+yMERvn9Is1rx+Deo2MIM91Zzo8qFpJJ 0qnalAoqtA2Mct8l8gZeQ6Q+btANuMn1KdIOOqauEqxsNtpEMP0GzHpyoCl08X8KF7IM CxC+znCEv4YMLOfzVQGcGq/oGY9Jsay1ELmHMBPe0949mus0/OWy/M3fQTSJt9OG2GF4 7d/AC/PY7sJEU0Dve1Xo77Fnm0SfZZRVE905Fa94dLucWR3/Ig1P52WVDFylmX/pIH6/ eswCdBEFPrWbRWVwV2HWTIflPMp21YRR4YWu3HS9aknioPY6J1dRjysm5kDqUuLGUK/i qImg== X-Forwarded-Encrypted: i=1; AJvYcCUIwHEvtnPO5XpHSMI+jlB9e7OSp25zTEGL/Y+UEN1SIyAXbqMqtT232xIhHy4dVqbPmD28S9nonoKX6fGc@lists.postgresql.org X-Gm-Message-State: AOJu0Yy2q6d27P3fMiSCOnZlowFkHjcR7MyUqYu3FO+AcZ0L+i3qEz6I OUV7cTaAI0TxVWj1onPiSCketBtumZOiCFvXdIWCoqAreUivX1ya4GhoPOpOx2Bd0Ha/MfITgy7 6c4Ax4ub7vl22kIlhGeeAtC29H9co30o= X-Gm-Gg: ASbGnctc8ov18x0nweljytrjgCU84K7Zqq5QHdu2aL+DjKyR1J1AseaM78/CIk13y1e 6Y+c79ph3lA7nx/wvIaThWdyXDE1XDekqTbFbJ0KZhEXAKC94P8xVScYOOE4t9f/3xJaF2R4AMB J0o6ABnO54f3dyGOiRYJqMl8GKUY7LrJOGrWHV61kLqTA25j2gSApOdPEiUeCjM2UFz19ioF4BR 5XTONz1imV/ewr9ELdjf2nIuS6hmwwaroKXa+Ve X-Google-Smtp-Source: AGHT+IHC52P0sBhVnxcBlpN9rGnRu4YcE3L1N5420chW605V7yQVohmw1KF+7FyoKEe3FXLEFoxao+UlAE1+e1baTIw= X-Received: by 2002:a17:903:32c2:b0:240:3b9e:dd65 with SMTP id d9443c01a7336-24247028137mr21420645ad.38.1754094470390; Fri, 01 Aug 2025 17:27:50 -0700 (PDT) MIME-Version: 1.0 References: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> <0BC8BEBF-3B1F-4E69-A1B9-CCCDF9617168@thebuild.com> <7281c379994ffc70cebb68423f5b8ba339d0d75f.camel@cybertec.at> <2fad4427bff83bc73f9b4215e284a76343f046f2.camel@cybertec.at> In-Reply-To: From: Jon Zeppieri Date: Fri, 1 Aug 2025 20:27:38 -0400 X-Gm-Features: Ac12FXxA28qkLwCZG7FuWjohlTYgZoXNOCsLhKGqAZmjAWgVhGIQ9yHWtNaehUE Message-ID: Subject: Re: Get info about the index To: Igor Korot Cc: Laurenz Albe , David Barbour , Christophe Pettus , Adrian Klaver , "pgsql-generallists.postgresql.org" 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 Fri, Aug 1, 2025 at 8:06=E2=80=AFPM Igor Korot wrot= e: > > If I read the docs correctly, this field indicates whether the > WHERE condition is actually present. > Are you referring to the condition on a partial index? You can get that using pg_get_expr(): select pg_get_expr(indpred, indrelid) from pg_index where indexrelid =3D 'my_partial_index'::regclass; - Jon