Re: Making tab-complete.c easier to maintain

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Making tab-complete.c easier to maintain
Дата
Msg-id 17081.1441374043@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Making tab-complete.c easier to maintain  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: Making tab-complete.c easier to maintain  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> See attached a proof-of-concept patch.  It reduces the size of
> tab-complete.c by a bit over a thousand lines.  I realise that changing so
> many lines just to refactor code may may be a difficult sell!  But I think
> this would make it easier to improve the tab completion code in future, and
> although it's large it's a superficial and mechanical change.

I really dislike the magical "<" business.  Maybe you could use NULL
instead of having to reserve a class of real strings as placeholders.
(That would require finding another way to denote the end of the list,
but a separate count argument seems like a possible answer.)
Or perhaps use empty strings as placeholders?
        regards, tom lane



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Testing WAL replay by comparing before and after images again
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Non-volatile variables used for spinlock manipulation