Re: psql tab completion enhancements
От
Joachim Wieland
Тема
Re: psql tab completion enhancements
Дата
Msg-id
20060203214138.GA5459@mcknight.de
Ответ на
Re: psql tab completion enhancements (Tom Lane)
Список
Дерево обсуждения
Re: psql tab completion enhancements Bruce Momjian <pgman@candle.pha.pa.us>
Re: psql tab completion enhancements Tom Lane <tgl@sss.pgh.pa.us>
On Fri, Feb 03, 2006 at 04:15:32PM -0500, Tom Lane wrote:
> > - Should all the
> > const char* foocompletion = { "BAR", "BAZ" };
> > be changed to
> > char* foocompletion = { "BAR", "BAZ" };
> Removing const decoration sure seems like the wrong direction to be
> going in. Why can't you still have const on the functions that expect
> to take non-modifiable lists?
ok, one could duplicate the functionality of complete_from_list() and add a
function complete_from_malloced_list() or similar (or refactor both such that
they call a third function that does the actual work - if possible). I will
do that if this is what you're proposing.
Joachim
В списке pgsql-patches по дате отправления