How to check which table is called which trigger in postgresql? I have ten tables and five triggers in my database.
I don't know the trigger name, but I need to edit the trigger.
So I need to know which table is called to which trigger?
Using,

SELECT tgname 
FROM pg_trigger;


we can print all the trigger name. But it did not show which table is called to which trigger.
Can anyone explain to me?
You need to join that to pg_class:

SELECT trg.tgname,
       ns.nspname||'.'||tbl.relname as trigger_table
FROM pg_trigger trg
 JOIN pg_class tbl on trg.tgrelid = tbl.oid
 JOIN pg_namespace ns ON ns.oid = tbl.relnamespace
WHERE NOT tgisinternal