psql tab completion enhancements

Поиск
Список
Период
Сортировка
От Joachim Wieland
Тема psql tab completion enhancements
Дата
Msg-id 20060106192739.GA5900@mcknight.de
обсуждение исходный текст
Ответы Re: psql tab completion enhancements  (Neil Conway <neilc@samurai.com>)
Re: psql tab completion enhancements  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: psql tab completion enhancements  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Hi,

psql's tab completion has the following problem:

If we have the following syntax for example:

SET SESSION AUTHORIZATION <user>;
SET SESSION AUTHORIZATION DEFAULT;

After "SET SESSION AUTHORIZATION", the tab completion can offer a list of
roles or the string constant "DEFAULT". However it can't offer both because
it can't get a list of roles and add a string constant to this list.

The appended patch adds the functionality of lists that can be extended with
constants.

Then you get:

template1=# SET session AUTHORIZATION <tab>
DEFAULT  fred     joe      john

I did proof-of-concept examples to add a constant to a

 - list from a query
 - list from a schema query
 - list of table attributes


Joachim


Вложения

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

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: [HACKERS] Inconsistent syntax in GRANT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Inconsistent syntax in GRANT