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 1ufjPd-00B3yp-0U for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 18:14:25 +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 1ufjPb-00BD1U-VI for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 18:14:24 +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 1ufjPb-00BD1L-Ku for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 18:14:23 +0000 Received: from smtp76.iad3a.emailsrvr.com ([173.203.187.76]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ufjPY-000zwu-1c for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 18:14:23 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp34.relay.iad3a.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 28FA323A07; Sat, 26 Jul 2025 14:14:19 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.4\)) Subject: Re: Get info about the index From: Christophe Pettus In-Reply-To: Date: Sat, 26 Jul 2025 11:13:48 -0700 Cc: Adrian Klaver , "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0BC8BEBF-3B1F-4E69-A1B9-CCCDF9617168@thebuild.com> References: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> To: Igor Korot X-Mailer: Apple Mail (2.3776.700.51.11.4) X-Classification-ID: 60bf90ec-62da-4bef-8aa3-7d97f6c45350-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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.=