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 1ufgg1-00ARI6-V5 for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 15:19:10 +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 1ufgg0-00AE1G-NH for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 15:19:09 +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 1ufgg0-00AE18-CP for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 15:19:08 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ufgfw-000yaz-32 for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 15:19:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 56QFJ0A92346255; Sat, 26 Jul 2025 11:19:00 -0400 From: Tom Lane To: Adrian Klaver cc: Igor Korot , "pgsql-generallists.postgresql.org" Subject: Re: Get info about the index In-reply-to: <9feb6bc9-be97-4b2f-a945-379ccd8ef7d3@aklaver.com> References: <9feb6bc9-be97-4b2f-a945-379ccd8ef7d3@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sat, 26 Jul 2025 08:15:11 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2346253.1753543140.1@sss.pgh.pa.us> Date: Sat, 26 Jul 2025 11:19:00 -0400 Message-ID: <2346254.1753543140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > On 7/26/25 08:00, Igor Korot wrote: >> Is there a better place to get the info about the index other than >> https://www.postgresql.org/docs/current/view-pg-indexes.html > pg_class: > https://www.postgresql.org/docs/current/catalog-pg-class.html > and pg_attribute: > https://www.postgresql.org/docs/current/catalog-pg-attribute.html > also have index information. pg_index is the real source of truth here. regards, tom lane