pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: psql: initialize comment-begin setting to a useful value by defa
3+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2021-12-02 a7da419810  Add configure probe for rl_variable_bind().
* pgsql: psql: initialize comment-begin setting to a useful value by defa
@ 2021-12-01 17:24 Tom Lane <tgl@sss.pgh.pa.us>
  2021-12-02 06:53 ` Re: pgsql: psql: initialize comment-begin setting to a useful value by defa Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2021-12-01 17:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: psql: initialize comment-begin setting to a useful value by defa
  2021-12-01 17:24 pgsql: psql: initialize comment-begin setting to a useful value by defa Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-12-02 06:53 ` Michael Paquier <michael@paquier.xyz>
  2021-12-02 16:48   ` Re: pgsql: psql: initialize comment-begin setting to a useful value by defa Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2021-12-02 06:53 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org

Hi Tom,

On Wed, Dec 01, 2021 at 05:24:58PM +0000, Tom Lane wrote:
> 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.)

prairiedog is unhappy after this commit due to the use of
rl_variable_bind():
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prairiedog&dt=2021-12-02%2005%3A29%3A32

/usr/bin/ld: Undefined symbols:
_rl_variable_bind
collect2: ld returned 1 exit status

Thanks,
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: psql: initialize comment-begin setting to a useful value by defa
  2021-12-01 17:24 pgsql: psql: initialize comment-begin setting to a useful value by defa Tom Lane <tgl@sss.pgh.pa.us>
  2021-12-02 06:53 ` Re: pgsql: psql: initialize comment-begin setting to a useful value by defa Michael Paquier <michael@paquier.xyz>
@ 2021-12-02 16:48   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2021-12-02 16:48 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org

Michael Paquier <michael@paquier.xyz> writes:
> On Wed, Dec 01, 2021 at 05:24:58PM +0000, Tom Lane wrote:
>> psql: initialize comment-begin setting to a useful value by default.

> prairiedog is unhappy after this commit due to the use of
> rl_variable_bind():

Meh.  Guess we need a configure probe for rl_variable_bind.
I'll see to it.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-12-02 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 17:24 pgsql: psql: initialize comment-begin setting to a useful value by defa Tom Lane <tgl@sss.pgh.pa.us>
2021-12-02 06:53 ` Michael Paquier <michael@paquier.xyz>
2021-12-02 16:48   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox