Re: psql with "Function Type" in \df

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: psql with "Function Type" in \df
Дата
Msg-id 20090427165145.GJ1539@fetter.org
обсуждение исходный текст
Ответ на Re: psql with "Function Type" in \df  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: psql with "Function Type" in \df  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Apr 27, 2009 at 10:39:33AM -0400, Alvaro Herrera wrote:
> David Fetter wrote:
> > On Fri, Apr 17, 2009 at 04:42:31PM -0400, Alvaro Herrera wrote:
> 
> > > It also seems like we're missing tab completion support for this.
> > 
> > Oops.  Working on that now.
> 
> Any luck with this?

I have a handle on the problem, which is that the tab completion code
assumes, wrongly, that it only needs to deal with fixed strings.  It's
actually been false for some time in the \div case, for example.  The
S option has shattered the fixed-string assumption.

I'm proposing to refactor the backslash handling code so all of it is
in one spot with differences in the target list and WHERE clauses
depending on whether it's tab completion, S, +, what I'm thinking of
as second-level options--the [ivt]* in \d[ivt]* and the [antw]* in
\df[antw]*[S+]--and patterns.

Does this sound reasonable?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Sam Halliday
Дата:
Сообщение: Re: RFE: Transparent encryption on all fields
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql with "Function Type" in \df