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 1ufhyR-00AjTZ-Ut for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 16:42:16 +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 1ufhyP-00Aiuf-V1 for pgsql-general@arkaria.postgresql.org; Sat, 26 Jul 2025 16:42:14 +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 1ufhyP-00AiuV-HQ for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 16:42:13 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ufhyN-000uCy-1n for pgsql-general@lists.postgresql.org; Sat, 26 Jul 2025 16:42:12 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-718389fb988so28869867b3.1 for ; Sat, 26 Jul 2025 09:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753548130; x=1754152930; 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=5+Z51GZRx/iCZjdSGDNaCNC1O4yJr6B4JGUSu+EuwrE=; b=i0KS+zHakp//RLCPZaPimKokfUS8FzNddOAIuqFZvE/fU92V1TLjFUypt4qQOS1QFC dAXkOugPPVEq4bfJZHBIRtxDXwePl73TLwRV+mqJ0ZEF9bz3DNb7pd3fZO2f6d5HXa1f GR+xQtNW4Tye7ymxXDR+GtygbEuNstRCQquGnqrk0CvRC+PYTCiFrcjH3mHz4Bp/x9mR JdaQqRSCYwavq2jFmC77M6Ui4zfi9Kxb8+o0eOnsFu6EkWlvyyZPd9KbO555ITGquJdu Os6wtGh0qv0n93zP1vCBH8emh4Yt78WeuncsqsLKf3b1eodHNPcnPQunH4MjsLD+QOsj PX6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753548130; x=1754152930; 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=5+Z51GZRx/iCZjdSGDNaCNC1O4yJr6B4JGUSu+EuwrE=; b=chN7SIZuOy6QRQ6j3FLCOsV/W+6e3CXjEIZ6KWvqroi58wZ5rJ9MZx9FNjbaO9fmIO IztcMOpsBp+zzE6QlEoGXNHXKOamwuxw3GfKM/v8nMeuuMnExOeQzrYNJl4SZ3G1JNRV sU0yybxziWqJmNcb3SqGfiyrdV0ZyIiv/3DJ319Q2EVMQURJCfhMu3Oa5avoGo9g9orn RcCWSxaBYBcQ0HLTRKzIZPBB0FPrxdBa0taFcDtPEH91BeuEerFVVbGxvoI/AKYjC2pb OR1aTakkY3TT0zV67EEyuToJL56xAbHRKqvbELuic1TREeXhHW1F0mSUCZInd4vym1cy NCLg== X-Gm-Message-State: AOJu0YzZfuKD0y1L/e52f2snOtwzoNrHyse+ulF8AGwOLMbkUzYJIOXJ OXJZmTta3EWAuBWMbe878OzRCPzcpn6jOGGZv+vLhtJEY4LOgBz5Vsx5m3gx2Mh6vVt4rL2ckoN AM07uz9/OAaVFmmuj0insmeahjHlrnUc= X-Gm-Gg: ASbGnctadqfBunxpOS1NHqUTyNMJYJBhVBRQZA0AfcAbCXca2/rxkyjjaCpLeeIabxy WFrc8ypT7qgDU0j4OMIaPkSA+z/MHf8dQ8t5dEgtAWKogkaG9dNvQv/iM+40CuNvGC+YzN5bL4E ZH1xp9a9TCPZ5Bdd7IHDZsGxWq+C1inFen0R64MqypbGw8Los1dGN1TE3UPRYNC7jjY/PnQYW3H 5rKROE+K2uqiDTkoXNFDaK/PLWmnzJRFwfCKEA= X-Google-Smtp-Source: AGHT+IFwQAjiloEVMQ0qzf5tgUCMCOZoWsn5z2N47p/DMND/O+UH5044tmAGZ+PSs6UME729wvNqUjyltWHVpYzAlfI= X-Received: by 2002:a05:690c:2505:b0:718:b695:14a9 with SMTP id 00721157ae682-719e3438f5cmr75382177b3.21.1753548129939; Sat, 26 Jul 2025 09:42:09 -0700 (PDT) MIME-Version: 1.0 References: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> In-Reply-To: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> From: Igor Korot Date: Sat, 26 Jul 2025 12:41:48 -0400 X-Gm-Features: Ac12FXwOumpDLWWZNQGGUe1NG6_PzOeuTC5rHPHwtdXJaFm6RTVY1n6jIJMISlM Message-ID: Subject: Re: Get info about the index To: Adrian Klaver Cc: "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 Adrian, On Sat, Jul 26, 2025 at 11:08=E2=80=AFAM Adrian Klaver wrote: > > On 7/26/25 08:00, Igor Korot wrote: > > Hi, ALL, > > Is there a better place to get the info about the index other than > > https://www.postgresql.org/docs/current/view-pg-indexes.html > > What information do you need? This is the command for creating the index: https://www.postgresql.org/docs/current/sql-createindex.html. 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 I don't want to parse the command since I'm sure I can query the DB to get the info. Thank you.. > > > > > That guy has a full blown CREATE INDEX command and I will need to > > parse it to get the info I need. > > > > Thank you. > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com