Re: Tab completion for "create unlogged" a bit too lax? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Tab completion for "create unlogged" a bit too lax?
Date
Msg-id YSWNIfMvRI+jbI9A@paquier.xyz
Whole thread Raw
In response to Re: Tab completion for "create unlogged" a bit too lax?  ("Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>)
List pgsql-hackers
On Tue, Aug 24, 2021 at 12:04:28PM +0000, Daniel Westermann (DWE) wrote:
> Hm, I think tab completion should only give choices for operations
> that are supposed to work. Anyway, thanks for pointing me to the
> commit, that makes it more clear why it is that way.

FWIW, my position on that is that there is no point to recommend
grammars that will return errors, and many code paths of
tab-complete.c list only their options available ignoring ones that
fail.  And we are talking about a one-line change as all the code
paths of CREATE UNLOGGED only have code to handle the case of TABLE.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: "Bossart, Nathan"
Date:
Subject: Re: prevent immature WAL streaming
Next
From: "Euler Taveira"
Date:
Subject: Re: row filtering for logical replication