Re: TABLE tab completion

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: TABLE tab completion
Дата
Msg-id CABUevEz1dMUpF7RdBHtikHkFAXAToTv+w9bHoDrezwcZayz1jw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: TABLE tab completion  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Mon, Sep 26, 2011 at 10:37, Magnus Hagander <magnus@hagander.net> wrote:
> On Sun, Sep 25, 2011 at 15:06, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>> On 24 September 2011 11:59, Magnus Hagander <magnus@hagander.net> wrote:
>>> TABLE tab completion in psql only completes to tables, not views. but
>>> the TABLE command works fine for both tables and views (and also
>>> sequences).
>>>
>>> Seems we should just complete it to relations and not tables - or can
>>> anyone see a particular reason why we shouldn't?
>>>
>>
>> Doesn't that mean that "DROP TABLE <tab>" would offer up views as well
>> as tables, which would be incorrect?
>
> Meh - you are correct, of course. I guess that's why we have code review :-)
>
> So - not a oneliner, but how about something like this?
>
> (Happy to have someone point out a neater way of doing it, not
> entirely fluent in how we do the tab completion..)

Rebased on top of the changes Tom made to the infrastructure, and applied.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


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

Предыдущее
От: "Omar Bettin"
Дата:
Сообщение: R: [9.1] unusable for large views (SOLVED)
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: [9.1] unusable for large views (SOLVED)