Re: Fix for psql \d tab completion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Subject: Re: Fix for psql \d tab completion
Date: 2009-04-07 01:32:57
Message-ID: 16005.1239067977@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Bruce Momjian wrote:
>> Robert Treat reported to me that \dS tab completion was not working in
>> CVS HEAD. I have adjusted the code to handle this and be more flexible
>> about \d modifiers.

> Doesn't this break completion for stuff like \daS, etc?

AFAICS \daS still works (that's why it's strncmp not just strcmp).

The thing that still doesn't work particularly well is completion
on the \dtisv family; this coding will only complete for the type
of object denoted by the first letter after \d. It's not clear how
important that is in the real world, though; and it wasn't any better
before.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-04-07 01:43:11 Yes, Virginia, beta is really coming
Previous Message Tom Lane 2009-04-07 01:19:55 Re: unchecked out of memory in postmaster.c