Re: New 'pg' consolidated metacommand patch - Mailing list pgsql-hackers

From Isaac Morland
Subject Re: New 'pg' consolidated metacommand patch
Date
Msg-id CAMsGm5cUcQYhOt7W+vz4GFQETQ49zr8j6gnhxuUt=uOZB3tXFQ@mail.gmail.com
Whole thread Raw
In response to Re: New 'pg' consolidated metacommand patch  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: New 'pg' consolidated metacommand patch
List pgsql-hackers
On Wed, 27 May 2020 at 16:00, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
 
Also consider some practical concerns with the command structure you
describe: Tab completion of commands wouldn't work anymore, unless you
supply custom tab completion setups.  The direct association between a
command and its man page would be broken.  Shell scripting becomes more
challenging:  Instead of writing common things like "if which
pg_waldump; then" you'd need some custom code, to be determined.  These
are all solvable, but just a sum of slight annoyances, for no real benefit.

I don’t think the man page concern is justified. We could have a “help” subcommand, just like git; “git help add” is (to a casual observer; probably not precisely) the same as “man git-add”.

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: future pg+llvm compilation is broken
Next
From: Christopher Browne
Date:
Subject: Re: New 'pg' consolidated metacommand patch