unexpected relkind: 73 ERROR with partition table index

Поиск
Список
Период
Сортировка
От Rajkumar Raghuwanshi
Тема unexpected relkind: 73 ERROR with partition table index
Дата
Msg-id CAKcux6mfYMS3OX0ywjOiWiGSEKhJf-1zdeTceHFbd0mScUzU5A@mail.gmail.com
обсуждение исходный текст
Ответы Re: unexpected relkind: 73 ERROR with partition table index  (David Rowley <david.rowley@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows
Следующее
От: Arthur Zakirov
Дата:
Сообщение: PATCH: Update snowball stemmers