psql small improvement patch

From: "Shinoda, Noriyoshi (PN Japan A&PS Delivery)" <noriyoshi(dot)shinoda(at)hpe(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: psql small improvement patch
Date: 2019-12-07 13:23:46
Message-ID: DF4PR8401MB044369094C004FD41ADE3CBAEE5E0@DF4PR8401MB0443.NAMPRD84.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, Hackers.

I propose a small improvement to the psql command.
Currently, psql's help/quit/exit command needs to start from the first position of the prompt.
For example, if you write a command after a space, the continuation prompt
(PROMPT2) is displayed.

---
postgres=> \set PROMPT2 'continue=>'
postgres=> <SPACE>help
continue=>
---

The attached patch allows the command to be executed ignoring leading white spaces.

Regards,
Noriyoshi Shinoda

Attachment Content-Type Size
psql_ignore_leading_space.patch application/octet-stream 748 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2019-12-07 13:51:20 Re: libpq sslpassword parameter and callback function
Previous Message Justin Pryzby 2019-12-07 09:10:04 verbose cost estimate