| От | Dave Page |
|---|---|
| Тема | Exposing keywords to clients |
| Дата | |
| Msg-id | 937d27e10805021354s70b24c0l29f7f18dc0ad0ec9@mail.gmail.com обсуждение |
| Ответы |
Re: Exposing keywords to clients
|
| Список | pgsql-patches |
Hi,
The attached patch implements a new function, pg_get_keywords(), which
returns a set of records describing the keywords recognised by the
server. This allows clients such as pgAdmin to get quoting rules
correct, and helps with other tasks such as syntax highlighting where
we need to support multiple server versions.
Example output (edited of course):
postgres=# select * from pg_get_keywords();
word | category
-------------------+-----------------------
all | Reserved
binary | Type or function name
xmlserialize | Column name
zone | Unreserved
(372 rows)
I wasn't sure about the best way to describe the categories -
obviously they need to be non-translatable (for client software to
interpret), but human readable is also nice. I'm happy to hear
alternate suggestions.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера