BUG #18290: \di+ can not show the same name indexes

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: yongtaoh2022(at)gmail(dot)com
Subject: BUG #18290: \di+ can not show the same name indexes
Date: 2024-01-14 06:57:15
Message-ID: 18290-d645a814cc36cc06@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18290
Logged by: Yongtao Huang
Email address: yongtaoh2022(at)gmail(dot)com
PostgreSQL version: 16.1
Operating system: centos7
Description:

``` SQL
gpadmin(at)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(dot)zhang(at)broadcom(dot)com> and Yongtao Huang
<yongtaoh2022(at)gmail(dot)com>

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Lakhin 2024-01-14 12:00:00 Re: BUG #17798: Incorrect memory access occurs when using BEFORE ROW UPDATE trigger
Previous Message Michael Paquier 2024-01-14 00:55:03 Re: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends