pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Дилян Палаузов <dpa-postgres@aegee.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: psql and readline comments
Date: Sun, 13 Jan 2019 15:25:58 +0000
Message-ID: <7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org> (raw)
In-Reply-To: <4750.1547392098@sss.pgh.pa.us>
References: <b10ba6a38a7f02207ccd0a848c620d7176149e46.camel@aegee.org>
	<4750.1547392098@sss.pgh.pa.us>

Hello,

when the user does not set anything, the presumption is, that the system has reasonable defaults.  A reasonable default
for “comment-begin” is “--”, and not the inherited default “#”.

Regards
  Дилян



On Sun, 2019-01-13 at 10:08 -0500, Tom Lane wrote:
> =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= <dpa-postgres@aegee.org> writes:
> > please consider integrating making the usual readilne binding M-# do in psql what users expect from it: insert comment
> > at the beginning of the line.  See for patch:
> > https://www.postgresql.org/message-id/01e0355e-381e-9732-7d4e-cbd0e6bfa710@aegee.org
> 
> I remain of the opinion that (1) nobody has tested the proposed patch
> across a range of readline and libedit versions, and (2) this would
> probably be better addressed by a documentation addition anyway.
> It's not psql's job to override user-settable readline options.
> 
> 			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org>
Permalink:  ../7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org/
Also on:    postgresql.org/message-id/7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dpa-postgres@aegee.org, tgl@sss.pgh.pa.us
  Subject: Re: psql and readline comments
  In-Reply-To: <7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org>
  References: <b10ba6a38a7f02207ccd0a848c620d7176149e46.camel@aegee.org> <4750.1547392098@sss.pgh.pa.us> <7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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