pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: yongtaoh2022@gmail.com
Subject: BUG #18290: \di+ can not show the same name indexes
Date: Sun, 14 Jan 2024 06:57:15 +0000
Message-ID: <18290-d645a814cc36cc06@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18290
Logged by:          Yongtao Huang
Email address:      yongtaoh2022@gmail.com
PostgreSQL version: 16.1
Operating system:   centos7
Description:        

``` SQL
gpadmin@gpadmin-host:~$ psql
psql (16.1)
Type "help" for help.

gpadmin=# create table t1(c1 int);
CREATE TABLE
gpadmin=# create temp table t2(c1 int);
CREATE TABLE
gpadmin=#
gpadmin=# create index idx1 on t1(c1);
CREATE INDEX
gpadmin=# create index idx1 on t2(c1);
CREATE INDEX

gpadmin=# \d+ t1
                                           Table "public.t1"
 Column |  Type   | Collation | Nullable | Default | Storage | Compression |
Stats target | Description
--------+---------+-----------+----------+---------+---------+-------------+--------------+-------------
 c1     | integer |           |          |         | plain   |             |
             |
Indexes:
    "idx1" btree (c1)
Access method: heap

gpadmin=# \d+ t2
                                          Table "pg_temp_3.t2"
 Column |  Type   | Collation | Nullable | Default | Storage | Compression |
Stats target | Description
--------+---------+-----------+----------+---------+---------+-------------+--------------+-------------
 c1     | integer |           |          |         | plain   |             |
             |
Indexes:
    "idx1" btree (c1)
Access method: heap

gpadmin=# \di+
                                          List of relations
  Schema   | Name | Type  |  Owner  | Table | Persistence | Access method | 
  Size    | Description
-----------+------+-------+---------+-------+-------------+---------------+------------+-------------
 pg_temp_3 | idx1 | index | gpadmin | t2    | temporary   | btree         |
8192 bytes |
(1 row)

```
Both table `t1` and temp table `t2` have index idx, but `\di` only shows the
index of table `t2`.

Related link: https://github.com/greenplum-db/gpdb/issues/15791

Bug catcher: Hao Zhang <hao-hz.zhang@broadcom.com> and Yongtao Huang
<yongtaoh2022@gmail.com>



view thread (3+ messages)  latest in thread

Message-ID: <18290-d645a814cc36cc06@postgresql.org>
Permalink:  ../18290-d645a814cc36cc06@postgresql.org/
Also on:    postgresql.org/message-id/18290-d645a814cc36cc06@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, yongtaoh2022@gmail.com
  Subject: Re: BUG #18290: \di+ can not show the same name indexes
  In-Reply-To: <18290-d645a814cc36cc06@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox