| От | Tom Lane |
|---|---|
| Тема | Re: Find out what on what function depends an index |
| Дата | |
| Msg-id | 17101.1433168155@sss.pgh.pa.us обсуждение |
| Ответ на | Find out what on what function depends an index (Andreas Ulbrich <andreas.ulbrich@matheversum.de>) |
| Ответы |
Re: Find out what on what function depends an index
|
| Список | pgsql-general |
Andreas Ulbrich <andreas.ulbrich@matheversum.de> writes:
> The question is the todo in the script: Is there a way to find out what
> indexes depends on what function?
Direct dependencies would show up in pg_depend. Indirect ones wouldn't,
since we don't analyze function bodies to see what they call (and if we
tried, there's the little matter of the halting problem).
A larger problem is that frequently the real issue with an unstable index
expression definition is that it depends on context, such as GUC settings,
rather than the function body per se. So I'm not sure how much pain you'd
really be able to prevent with this approach.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера