pgsql: psql: initialize comment-begin setting to a useful value by defa

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: initialize comment-begin setting to a useful value by defa
Date: 2021-12-01 17:24:58
Message-ID: E1msTLm-0007Cm-Ri@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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-cAdMVr7azeYR7nWKsNp7qhORzc84rV6d7m7knG5Hrtsw@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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-12-01 18:45:07 pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat
Previous Message Peter Eisentraut 2021-12-01 15:16:42 pgsql: Improve some comments in scanner files