psql: initialize comment-begin setting to a useful value by default.

Readline's meta-# command is supposed to insert a comment marker
at the start of the current line.  However, the default marker is
"#" which is entirely unhelpful for SQL.  Set it to "-- " instead.
(This setting can still be overridden in one's ~/.inputrc file,
so this change won't affect people who have already taken steps
to make the command useful.)

Discussion: 
https://postgr.es/m/cajcof-cadmvr7azeyr7nwksnp7qhorzc84rv6d7m7kng5hr...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d858af07ee67efda3778bdd655852afabf4a125

Modified Files
--------------
src/bin/psql/input.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

Reply via email to