Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giheP-0007mh-L6 for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Jan 2019 15:26:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1giheM-00042B-II for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Jan 2019 15:26:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giheM-000424-8i for pgsql-bugs@lists.postgresql.org; Sun, 13 Jan 2019 15:26:10 +0000 Received: from mail.aegee.org ([144.76.142.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giheE-0004rw-D3 for pgsql-bugs@postgresql.org; Sun, 13 Jan 2019 15:26:09 +0000 Authentication-Results: mail.aegee.org/x0DFPwQ4021265; auth=pass (PLAIN) smtp.auth=didopalauzov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aegee.org; s=k4096; t=1547393159; i=dkim+MSA-tls@aegee.org; r=y; bh=GjUAYEgqRD54O9q7ierc4lXSlydNmp3ifTm9pMC15RQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PmeJfRbLnZOziUrwSRAqgEg0rR36e8MKfjI0MbQO2lcU4Rq+nTe+fINo0zu7eUIkN PI8Pv31e7ktyFKFXP2/QaMvjXHhB2XArPHWwPNAi61UUUCfpoEtSdnaJmADJyoVZhi ZgOs+Cl7q3V6SjKfqm+PZBsy7GYx6YR5yG2f0ZT3IDPyv4RgtC6Ki7lyMouhk6vm6L hhWGqcOicNH5HzxEiDDZuSumMBpRVQnEsWG7C3HMcEo8eokvO+pt0own4KruEfHE2j F8DSyUZYzip1bRVFJ+Lyvvh4o3d/xxpg4+oQvuiZBIxSg8SNfRiWtV9ZJuHrzKSXij AXP0G+ME7gEDYq+QBw/3zXWxsb/BcYmtrrlB0vDPJsJWB9DWfT5bG6oAtggVvnuhhK PfL+GgMfQuE5GZF75E75nVRjaya8UqLtNg716MRth9pZzNf+Fq4X3zkJJg3KFOc+vW eeU9DtJWGiRjv25+/PLxa444KSQKdUY5fRJ9UtwirC8ydxGk4WjaR/8viq2Xm7/Xu/ W5fJTH2WFRUHgfUNON9vQgVQjLqBAxCZyjNgOi/W+zk2c20JGgfIKbv3PBSyQMF7ET KcI0iO6wCf284bIg5BNkJBQtXeteu0oQSM3EvhvQvcaYLJiN1swI1hz6xQtoYXQpcB Z3IFE2a/h/iVgjNWvUrIwAog= Authentication-Results: mail.aegee.org/x0DFPwQ4021265; dkim=none Received: from Tylan (adsl-62-167-97-198.adslplus.ch [62.167.97.198]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id x0DFPwQ4021265 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 13 Jan 2019 15:25:59 GMT Message-ID: <7493dbdd54775b1160d7971039c575cab2b0e331.camel@aegee.org> Subject: Re: psql and readline comments From: =?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?= To: Tom Lane Cc: pgsql-bugs@postgresql.org Date: Sun, 13 Jan 2019 15:25:58 +0000 In-Reply-To: <4750.1547392098@sss.pgh.pa.us> References: <4750.1547392098@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.31.90 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.101.1 at mail.aegee.org X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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?= 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