Re: Todo "claim": psql tab completion on schema names

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
Cc: Ian Barwick <barwick(at)gmx(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Todo "claim": psql tab completion on schema names
Date: 2003-02-16 00:56:57
Message-ID: 1045357017.12011.38.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 2003-02-15 at 19:49, Ross J. Reedstrom wrote:
> On Sun, Feb 16, 2003 at 01:34:34AM +0100, Ian Barwick wrote:
> > On Sunday 16 February 2003 01:10, Rod Taylor wrote:
> > > I've been debating a mechanism which could build tab completion tables
> > > based on the documentation for a while now -- and was going to give it a
> > > try next week. If it works, that file would essentially disappear.
>
> Hmm, from slash commands, or from SQL grammar? Or both? How impossible would
> it be to generate the tab-completion from the _grammar_ (for the SQL)
> rather than from docs? Something I was musing about when adding cases to this
> a month or so ago.

Grammer would certainly be nicer but vastly more complicated. Parsing
the SGML shouldn't be overly difficult.

Perhaps I'll just clean up what I've done -- move describe.c to the
backend -- and see how to approach tab completion later.

> > > Feel
> > > free to send in patches for ones that have been missed.
> >
> > ..what I meant is that after entering \d, TAB will produce a list of tables,
> > but \di does not produce a list of indexes, same for \dv etc. I see
> > no particular reason why this is so and can provide patches
> > if relevant.
>
> Send in the patches: won't hurt, even if they get overridden by alter work -
> who knows, Rod may get distracted and not complete the grand plan above.

Wouldn't be the first time ;)

--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-02-16 01:19:59 Re: location of the configuration files
Previous Message Tatsuo Ishii 2003-02-16 00:51:44 Re: client_encoding directive is ignored in