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

From Alvaro Herrera
Subject Re: unexpected relkind: 73 ERROR with partition table index
Date
Msg-id 20180626150915.5fvzzdrjiyabnrpr@alvherre.pgsql
Whole thread Raw
In response to Re: unexpected relkind: 73 ERROR with partition table index  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: unexpected relkind: 73 ERROR with partition table index
List pgsql-hackers
On 2018-Jun-27, David Rowley wrote:

> On 27 June 2018 at 00:18, Rajkumar Raghuwanshi
> <rajkumar.raghuwanshi@enterprisedb.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().

Ah, yeah, thanks.  No surprise this was missed, since I didn't add
tests for ALTER INDEX RENAME and Peter concurrently refactored the
handling code.  I propose we add a few more test lines, as attached.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Thomas Reiss
Date:
Subject: Re: Performance regression with PostgreSQL 11 and partitioning
Next
From: Alexander Kuzmenkov
Date:
Subject: Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused