Re: [DOC] add missing "[ NO ]" to various "DEPENDS ON" synopses
Ian Lawrence Barwick <barwick@gmail.com>
From: Ian Lawrence Barwick <barwick@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-02-15T06:57:04Z
Lists: pgsql-hackers
Attachments
- psql-no-depends-tab-completion.v1.diff (text/x-patch) patch v1
2021年2月13日(土) 11:52 Michael Paquier <michael@paquier.xyz>: > On Fri, Feb 12, 2021 at 10:32:14AM +0900, Ian Lawrence Barwick wrote: > > In the documentation, the "[ NO ]" option is listed in the synopsis for > > ALTER TRIGGER and ALTER FUNCTION, but not the others. > > Trivial patch attached. > > There are two flavors to cover for 6 commands per gram.y, and you are > covering all of them. So this looks good to me. I'll apply and > backpatch in a bit. Thanks! (Apologies for the preceding blank mail). It is worth noting that tab-complete.c does a bad > job in completing those clauses. > Indeed it does. Not the most exciting of use cases, though I imagine it might come in handy for anyone developing an extension, and the existing implementation is inconsistent (in place for ALTER INDEX, and partially for ALTER MATERIALIZED VIEW, but not the others). Patch suggestion attached. Regards Ian Barwick -- EnterpriseDB: https://www.enterprisedb.com
Commits
-
Add psql completion for [ NO ] DEPENDS ON EXTENSION
- e6b8e83b9f01 14.0 landed
-
doc: Mention NO DEPENDS ON EXTENSION in its supported ALTER commands
- bcd5e95754bf 13.3 landed
- 8063d0f6f56e 14.0 landed