| От | Lex Berezhny |
|---|---|
| Тема | pg_views |
| Дата | |
| Msg-id | 1044326043.13139.17.camel@buddha обсуждение |
| Список | pgsql-sql |
hi, I'm trying to write some code that can analyze the database structure and i need a way to discover the composition of a view (the tables and table.column info). I've managed to do much of this by querying the pg_views for the definition and literally parsing the SQL myself, but obviously that has many limitations unless I impliment a complete SQL parser and that's beyond the scope of what I want :-) I'm wondering if PostgreSQL actually reparses the view definition on each invocation or if it stores the required information in some accessible place. My goal is to take a view name as input and output the tables and columns composing the view. thanks in advance, - lex -- Lex Berezhny <LBerezhny@DevIS.com>
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера