Re: unexpected relkind: 73 ERROR with partition table index

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Rajkumar Raghuwanshi <rajkumar(dot)raghuwanshi(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: unexpected relkind: 73 ERROR with partition table index
Date: 2018-06-26 13:10:38
Message-ID: CAKJS1f_EJhgmxaEneEKszx2ze4Z0y2op9XEswqg659wjjGdNWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 27 June 2018 at 00:18, Rajkumar Raghuwanshi
<rajkumar(dot)raghuwanshi(at)enterprisedb(dot)com> wrote:
> postgres=> ALTER INDEX part_idx RENAME TO part_idx_renamed;
> ERROR: unexpected relkind: 73

Seems to be caused by the auth failure code path in
RangeVarCallbackForAlterRelation().

Patch attached.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
teach_get_relkind_objtype_about_partitioned_indexes.patch application/octet-stream 460 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Darafei Komяpa Praliaskouski 2018-06-26 13:10:52 Re: [HACKERS] GUC for cleanup indexes threshold.
Previous Message Arthur Zakirov 2018-06-26 13:04:47 Re: [PROPOSAL] Nepali Snowball dictionary