How to get the trigger(s) associated with a view or a table in PostgreSQL

前端 未结 5 768
萌比男神i
萌比男神i 2021-02-01 12:27

I have one requirement that I have to get the list of triggers associated to the given table/view.
Can anyone help me to find the triggers for a table in PostgreSQL?

5条回答
  •  日久生厌
    2021-02-01 13:00

    On psql command-line tool you can also use \dS (from https://serverfault.com/questions/331024/how-can-i-show-the-content-of-a-trigger-with-psql)

提交回复
热议问题