| От | Tom Lane |
|---|---|
| Тема | Re: Function to Table reference |
| Дата | |
| Msg-id | 26814.1272645838@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Function to Table reference (Tim Landscheidt <tim@tim-landscheidt.de>) |
| Список | pgsql-general |
Tim Landscheidt <tim@tim-landscheidt.de> writes:
> (anonymous) wrote:
>> Is there a way to find which functions are being used by table.
>> Ex :- If there are functions fnc_a, fnc_b, fnc_c and table A is used in
>> fnc_a and fnc_c, How can we find that ? can you please help?
> Basically, you can't. Functions are more or less black boxes
> to PostgreSQL.
You could possibly grep all the functions' source code for references to
the particular table you care about, eg
select ... from pg_proc where prosrc ~ 'mytable'
but bear in mind that this could miss dynamically-constructed queries.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера