public inbox for [email protected]  
help / color / mirror / Atom feed
From: Xianbin Zhu <[email protected]>
To: [email protected]
Subject: [PROPOSAL] psql tab completion: support ALTER ROLE ... IN DATABASE ... RESET
Date: Sun, 29 Mar 2026 14:50:28 +0800
Message-ID: <CAD-rTHmBR8SW-p7Nc97HT-CEGr85WihdeTsrnLEiRGeK19nWAw@mail.gmail.com> (raw)

Hi hackers,

I'd like to work on a small psql tab-completion improvement.

Problem:
psql currently has a missing completion path for:
ALTER ROLE <role> IN DATABASE <db> RESET ...

There is an in-code TODO marker for this case in
src/bin/psql/tab-complete.in.c.

Proposal:
- Add completion support after "... IN DATABASE <db> RESET"
- Reuse existing completion behavior/style used by ALTER ROLE ... RESET
- Add regression coverage in src/bin/psql/t/010_tab_completion.pl

Non-goals:
- No backend behavior changes
- No SQL grammar changes

If this direction looks good, I can send a patch.

Thanks,
xianbinzhu


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: [PROPOSAL] psql tab completion: support ALTER ROLE ... IN DATABASE ... RESET
  In-Reply-To: <CAD-rTHmBR8SW-p7Nc97HT-CEGr85WihdeTsrnLEiRGeK19nWAw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox