【发布时间】:2015-08-17 08:16:28
【问题描述】:
对于给定的表,我如何找到使用该表中任何字段的所有函数? 假设我有带有 (studentid, studentname) 的学生表
我想要一个使用 studentid 和 studentname 的所有函数和触发器的列表。
我的问题与List stored functions that reference a table in PostgreSQL 类似,但那里给出的代码不起作用...n.nspname 是在与 Schema not to table 相关的条件下给出的。
【问题讨论】:
-
您的表名在prosrc 列中,您必须使用like 或regex 查询该列。这与函数所在的架构无关。
-
表有列,而不是字段...顺便说一句,information_schema.ROUTINE_TABLE_USAGE?
-
id jarlh 呢?
-
@jarlh postgresql 没有
information_schema.routine_table_usage。 -
@RadekPostołowicz,我明白了。感谢您的信息。
标签: sql postgresql