Re: ERROR: "ft1" is of the wrong type.
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-02-18T07:27:23Z
Lists: pgsql-hackers
On Tue, Feb 16, 2021 at 06:14:15PM +0900, Kyotaro Horiguchi wrote: > The attached is just fixing that. I tried to make it generic but > didn't find a clean and translatable way. > > Also I found that only three cases in the function are excecised by > make check. > > ATT_TABLE : foreign_data, indexing checks > ATT_TABLE | ATT_FOREIGN_TABLE : alter_table > ATT_TABLE | ATT_COMPOSITE_TYPE | ATT_FOREIGN_TABLE : alter_table > > I'm not sure it's worth the trouble so the attached doesn't do > anything for that. Each sentence needs to be completely separate, as the language translated to may tweak the punctuation of the set of objects listed, at least. But you know that already :) If you have seen cases where permission checks show up messages with an incorrect relkind mentioned, could you add some regression tests able to trigger the problematic cases you saw and to improve this coverage? -- Michael
Commits
-
Fix unexpected error messages for various flavors of ALTER TABLE
- 85a8c3a4b60f 11.13 landed
- b242e1d239df 12.8 landed
- 5226243459f1 13.4 landed
- 0c83eb2e0edb 14.0 landed
-
Revert per-index collation version tracking feature.
- ec4831470826 14.0 cited
-
Restructure ALTER TABLE execution to fix assorted bugs.
- 1281a5c907b4 13.0 cited