Re: ERROR: "ft1" is of the wrong type. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: ERROR: "ft1" is of the wrong type.
Date
Msg-id 98fc542d-2a15-50c7-1818-55dcfe498a2d@enterprisedb.com
Whole thread Raw
In response to Re: ERROR: "ft1" is of the wrong type.  (Michael Paquier <michael@paquier.xyz>)
Responses Re: ERROR: "ft1" is of the wrong type.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers
On 02.07.21 06:20, Michael Paquier wrote:
> On Wed, Jun 30, 2021 at 01:43:52PM +0500, Ahsan Hadi wrote:
>> Sure I will also take a look at this patch.
>>
>> +1 for avoiding the backpatching burden.
> 
>  From what I recall of this thread, nobody has really complained about
> this stuff either, so a backpatch would be off the table.  I agree
> that what Peter E is proposing on the other thread is much more
> suitable in the long term, as there is no need to worry about multiple
> combinations of relkinds in error message, so such error strings
> become a no-brainer when more relkinds are added.

My patch is now committed.  The issue that started this thread now 
behaves like this:

ALTER TABLE ft1 ATTACH PARTITION ...;
ERROR:  ALTER action ATTACH PARTITION cannot be performed on relation "ft1"
DETAIL:  This operation is not supported for foreign tables.

So, for PG15, this is taken care of.

Backpatches under the old style for missing combinations would still be 
in scope, but there my comment on the proposed patches is that I would 
rather not remove apparently unused combinations from back branches.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: wrong relkind error messages
Next
From: Dean Rasheed
Date:
Subject: Re: [PATCH] expand the units that pg_size_pretty supports on output