Re: Getting psql to redisplay command after \e
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2019-10-29T08:23:43Z
Lists: pgsql-hackers
Hello Tom, > The attached patch teaches psql to redisplay any not-yet-executed > query text after editing with \e. > > [...] I've tested this patch. Although I agree that it is an improvement, I'm a little at odd with the feature as is: psql=> \e # select 1... then: psql=> select 1... psql-> <prompt> I cannot move back with readline to edit further, I'm stuck there, which is strange. I would prefer a simpler: psql=> select 1...<prompt> that would also be readline-aware, so that I know I'm there and ready to nl but also to edit directly if I want that. That would suggest to remove the ending newline rather than appending it, and possibly to discuss a little bit with readline as well so that the display line is also the current line for its point of view, so that it can be edited further? -- Fabien.
Commits
-
Make psql redisplay the query buffer after \e.
- d1c866e57f11 13.0 landed