Re: BUG #17486: [pg_restore] Restoring a view fails if this view contains an attribute without alias name.
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: n.lutic@loxodata.com,
pgsql-bugs@lists.postgresql.org
Date: 2022-05-20T15:07:29Z
Lists: pgsql-bugs
> On 20 May 2022, at 16:34, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Perhaps we should just tweak ruleutils so that the alias is always > printed for non-Var columns, even when it's "?column?". That's kind of > ugly, but if you wanted non-ugly you should have selected a better column > name to start with. That might be the path of least confusion, and as you rightly say, if you don't like the ugliness then there is a very easy way to fix it. -- Daniel Gustafsson https://vmware.com/
Commits
-
Show 'AS "?column?"' explicitly when it's important.
- fefd5463173a 13.8 landed
- f3b8d7244ae1 11.17 landed
- c7461fc25558 15.0 landed
- bb2c04676be0 12.12 landed
- 7686403b43ca 10.22 landed
- 6f7eec1193f8 14.4 landed