From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: tab completion in psql |
Date: | 1999-11-30 17:55:02 |
Message-ID: | 199911301755.MAA04223@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Tue, 30 Nov 1999, Bruce Momjian wrote:
>
> > I liked the new tab competion ability in psql. Seems to work well in
> > CREATE * but not so great in the others, like doing FROM and WHERE. Can
> > you take a look at backend/parser/keywords.c and see if you can merge
> > completion for those words in to psql. It may be a nice feature.
>
> The tab completion is not very smart, it only covers the really obvious
> cases. Doing FROM shouldn't be so hard, but once you get into WHERE you
> almost end up writing a complete SQL parser just for this. Not that
> there's anything fundamentally wrong with that. It's a very evolving piece
> of code, however; it can only get better. I bet those readline authors
> never had this one in mind. Otherwise readline would play nicer with it.
I am just suggesting completing the word FROM, not doing anything more
than that.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Vince Vielhaber | 1999-11-30 17:55:21 | Re: Ownership/protection (was Re: [HACKERS] Portability) |
Previous Message | Peter Eisentraut | 1999-11-30 17:41:36 | Re: tab completion in psql |