unexpected relkind: 73 ERROR with partition table index - Mailing list pgsql-hackers

From Rajkumar Raghuwanshi
Subject unexpected relkind: 73 ERROR with partition table index
Date
Msg-id CAKcux6mfYMS3OX0ywjOiWiGSEKhJf-1zdeTceHFbd0mScUzU5A@mail.gmail.com
Whole thread Raw
Responses Re: unexpected relkind: 73 ERROR with partition table index
List pgsql-hackers
Hi,

I am getting "ERROR:  unexpected relkind: 73" when trying to rename partition table index with below test case.

create user u1 superuser;
create user u2 nosuperuser login;
\c postgres u1

create table public.part(c1 int, c2 int) partition by range(c1);
create table public.part_p1 partition of public.part for values from (minvalue) to (0);
create table public.part_p2 partition of public.part for values from (0) to (maxvalue);
create index part_idx on public.part(c1);

create table public.nopart (c1 int, c2 int);
create index nopart_idx on public.nopart(c1);

--switch to nonsuperuser
\c postgres u2

postgres=> --rename the index owned by another user --non partition table
postgres=> ALTER INDEX nopart_idx RENAME TO nopart_idx_renamed;
ERROR:  must be owner of index nopart_idx
postgres=>
postgres=> --rename the index owned by another user --partition table
postgres=> ALTER INDEX part_idx RENAME TO part_idx_renamed;
ERROR:  unexpected relkind: 73


Thanks & Regards,
Rajkumar Raghuwanshi
QMG, EnterpriseDB Corporation

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows
Next
From: Arthur Zakirov
Date:
Subject: PATCH: Update snowball stemmers