Re: Improve tab completion for ALTER STATISTICS

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: vignesh C <vignesh21@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-10-24T07:00:10Z
Lists: pgsql-hackers
On Wed, Oct 19, 2022 at 04:06:51PM +0530, vignesh C wrote:
> I noticed that the tab completion for ALTER STATISTICS .. SET was not
> handled. The attached patch displays SCHEMA and STATISTICS for tab
> completion of ALTER STATISTICS name SET.

Indeed, it is a bit strange as we would get a list of settable
parameters once the completion up to SET is done, rather than
STATISTICS and SCHEMA.  Your patch looks fine, so applied.  Thanks!
--
Michael

Commits

  1. Improve tab completion for ALTER STATISTICS <name> SET in psql