Dette vil returnere alle de detaljer, du ønsker at vide
select * from information_schema.triggers
eller hvis du vil sortere resultaterne af en specifik tabel, kan du prøve
SELECT event_object_table
,trigger_name
,event_manipulation
,action_statement
,action_timing
FROM information_schema.triggers
WHERE event_object_table = 'tableName' -- Your table name comes here
ORDER BY event_object_table
,event_manipulation
følgende vil returnere tabelnavn, der har trigger
select relname as table_with_trigger
from pg_class
where pg_class.oid in (
select tgrelid
from pg_trigger
)