Re: [PATCH] Psql List Languages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [PATCH] Psql List Languages
Дата
Msg-id 200907191100.50278.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: [PATCH] Psql List Languages  (Fernando Ike <fike@midstorm.org>)
Ответы Re: [PATCH] Psql List Languages  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Friday 17 July 2009 18:26:31 Fernando Ike wrote:
>    Follow new version patch, now with version postgresql version.

1) This is obviously wrong:

CASE WHEN l.lanispl = 't' THEN 'Trusted' WHEN l.lanispl = 'f' THEN 'Untrusted' 
END

2) It may be better to use lanispl to determine whether a language is a system 
object or not.  It's kind of obscure, but pg_dump does it that way, so it'd at 
least be consistent.

3) Your code does processSQLNamePattern(), but neither the help nor the 
documentation mention that \dL accepts a pattern.  A pattern for listing 
languages might be overkill, but at least the documentation needs to match 
what the code attempts to do.

4) Instead of LEFT JOIN pg_catalog.pg_proc p on l.lanplcallfoid = p.oid etc, 
just cast the oid field to regprocedure.  See examples elsewhere in 
describe.c.

Please submit an updated patch.


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Sampling profiler updated
Следующее
От: Andres Freund
Дата:
Сообщение: Re: machine-readable explain output v2