Re: wrong relkind error messages

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-04-17T12:45:34Z
Lists: pgsql-hackers
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.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. More improvements of error messages about mismatching relkind

  2. Improve error messages about mismatching relkind