psql small improvement patch - Mailing list pgsql-hackers

From Shinoda, Noriyoshi (PN Japan A&PS Delivery)
Subject psql small improvement patch
Date
Msg-id DF4PR8401MB044369094C004FD41ADE3CBAEE5E0@DF4PR8401MB0443.NAMPRD84.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: psql small improvement patch
Re: psql small improvement patch
List 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

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: verbose cost estimate
Next
From: Andrew Dunstan
Date:
Subject: Re: libpq sslpassword parameter and callback function