List stored functions that reference a table in PostgreSQL

后端 未结 9 1072
深忆病人
深忆病人 2020-12-07 14:10

Just a quick and simple question: in PostgreSQL, how do you list the names of all stored functions/stored procedures using a table using just a SELECT statement, if possible

9条回答
  •  执念已碎
    2020-12-07 14:56

    If you are using psql, try \df

    From the man page:

    Tip
    To look up functions taking arguments or returning values of a specific type, use your pager's search capability to scroll through the \df output.
    

    Running \set ECHO_HIDDEN will reveal what \df is running behind the scenes.

提交回复
热议问题