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 1ufkKy-00BDDw-OS for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 19:13:41 +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 1ufkKv-00BWQR-MQ for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 19:13:37 +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 1ufkKv-00BWQI-0t for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 19:13:37 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ufkKt-000vQC-1E for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 19:13:36 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-71967cd1072so31273847b3.3 for ; Sat, 26 Jul 2025 12:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753557214; x=1754162014; 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=MHupAvrS/+EQ3oiMdLoX4f+/FAtexmlB58q1QkVNjq4=; b=m7xz6UW1aY9RVd3/ZpdFi9uv5s0iy2RafmSi7fVSlBcx1OM6/uM7FRkdfX9cxe1nNB 1tSCHq2s3vlrqGKjVLQC32ciptH3832oV+Js7QGHNhgTKdl4UXlOdHko4esu0SgXbfqM hXlpHJAmfLpT49AYp3R0rQNxAzYe1cDQGfJjsDSgdGCTKl5Fu2Tdq3TK9jBLWZUru2Sh BJnerc8SNxvz+6JBnXSRaw1doUaxmbUtd6wlJOnG4K6+lV2mkTY+pWfEM/xwv1V0ti4O 0uaiM72w+zG39hBsIyseMDKKLRKG2c+sREoLeHKIk4CYSPtaaJpcgT+So8DGqOZernc2 8sAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753557214; x=1754162014; 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=MHupAvrS/+EQ3oiMdLoX4f+/FAtexmlB58q1QkVNjq4=; b=a3GQZkipF391pWqfBUUicI3YqWBP5O3BVYx1vZUNzLOY99le5E4XnIkqFarETa0J4A P76r/LWlSNelHNegdBV/YvK4IWwlMgYIL+50V4dwM71JfoPFys7t9CTPmhsSJE+iOpQ6 9a+RsbSHdAeIt4PjhdIIKlFXAdFDtcEf0I5sptEsJ+u1P61Soo5H5vB4Mj3Mser6Zuew dJVRPijDB5/sxB0yfjmMed+HXDYY6wIG9fV0Y2rSF92sxYmqxd4cjIOlRYHld88EVzQU i0qpodJpW99k6KFhG7i+/u9rY5xh5+CjTbp7k/ogsh2n6HnRt/uvuSSUkZZUmGBI5u+H zZag== X-Forwarded-Encrypted: i=1; AJvYcCWPW6+H2d97IXzYlSIH4/FV159Dy/tboAc2ekvF1YpIejq1i6sySknJ0/gUUtly5q7HnKgNPEc+LpeNB01m@lists.postgresql.org X-Gm-Message-State: AOJu0YyvKH18CH238p2ogt6FhcYrIYxJYdgmARKGw+YEUI1VxWn1D0t1 IKDFV1jxOv/dhx2H/dH+/EiU9IS2U8eRzjyf6Y7JwOY4LCCk7qhRcKwQMI5xCmqhvY0Vz/+Yapz QO7JVdUX8ytyi+gjJue5xG/WEzv5pQJs= X-Gm-Gg: ASbGncsRFhFbSxMcckDW7tXopPzIXKkSDrPU/8cbMbh6n/Q5rlHUWEhCkVPkXrSMECQ JA7uhYa6a4VwOAodmUdCCJQx+/2aqUV4hzPw0Upe86cX4H7FBB5VOwx3i71l/trwgsgiUdoqKl0 /qQNLKen3IIiJ+JyZffcB0HyYlvWpIVHu8EYo9sb1DeHMQrDeVYNxncq73wlOc/mrKTFFmkgwav RJE79zkbdmomrCZP283+KmYMQ== X-Google-Smtp-Source: AGHT+IG8u2tDuPo9uQG2BAkAkz8qRpu/dqc77Z2G1iXxvaOM0fEQnR9BrjU+nbkuMuQYxQaFl8qfMnDmwxMmy3CjaQ8= X-Received: by 2002:a05:690c:3808:b0:715:969:ce31 with SMTP id 00721157ae682-719e34633bdmr75625127b3.35.1753557214227; Sat, 26 Jul 2025 12:13:34 -0700 (PDT) MIME-Version: 1.0 References: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> <0BC8BEBF-3B1F-4E69-A1B9-CCCDF9617168@thebuild.com> In-Reply-To: <0BC8BEBF-3B1F-4E69-A1B9-CCCDF9617168@thebuild.com> From: Igor Korot Date: Sat, 26 Jul 2025 15:13:23 -0400 X-Gm-Features: Ac12FXyIKLSu29ZP52yRcC09cZv5Rw5d-s7L0a0hXrK_WfEGjaEX9EAsrWJBQDw Message-ID: Subject: Re: Get info about the index To: Christophe Pettus Cc: Adrian Klaver , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000d8f18e063ad9daf7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d8f18e063ad9daf7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Christopher, On Sat, Jul 26, 2025, 2:14=E2=80=AFPM Christophe Pettus = wrote: > > > > I want to know all individual things: > > - whether the index is unique. > > - what type of index it is > > - whether the field is ASC or DESC. > > - all other individual arams > > pg_index is the source for those. The one exception is the access method > for the index, which is in pg_class. I didn't find the sorting for the field. Can you help? Thank you. --000000000000d8f18e063ad9daf7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Christopher,



=
On Sat, Jul 26, 2025, 2:14=E2=80=AFPM Christophe Pettus <xof@thebuild.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">

> I want to know all individual things:
> - whether the index is unique.
> - what type of index it is
> - whether the field is ASC or DESC.
> - all other individual arams

pg_index is the source for those.=C2=A0 The one exception is the access met= hod for the index, which is in pg_class.

I didn't find the sorting for the= field.

Can you help?

Thank you.=C2=A0

--000000000000d8f18e063ad9daf7--