Re: wrong relkind error messages

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-04-17T13:09:03Z
Lists: pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2020-04-15 02:15, Tom Lane wrote:
>> In the meantime could we at least say "ALTER TABLE action cannot
>> be performed"?

> We don't know whether ALTER TABLE was the command.  For example, in one 
> of the affected regression test cases, the command is ALTER VIEW.

Maybe just "ALTER action cannot be performed"?  I share Robert's
dislike of being so vague as to just say "action".

			regards, tom lane



Commits

  1. More improvements of error messages about mismatching relkind

  2. Improve error messages about mismatching relkind