Re: psql: fix variable existence tab completion

Erik Wienhold <ewie@ewie.name>

From: Erik Wienhold <ewie@ewie.name>
To: Steve Chavez <steve@supabase.io>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-03-03T15:37:28Z
Lists: pgsql-hackers
On 2024-03-03 03:00 +0100, Steve Chavez wrote:
> psql has the :{?name} syntax for testing a psql variable existence.
> 
> But currently doing \echo :{?VERB<Tab> doesn't trigger tab completion.
> 
> This patch fixes it. I've also included a TAP test.

Thanks.  The code looks good, all tests pass, and the tab completion
works as expected when testing manually.

-- 
Erik



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove test-case workarounds for ancient libedit versions.

  2. psql: fix variable existence tab completion