2

If we query pg_trigger then we don't get the event triggers, we get list of only normal triggers.

So, is there any other specific table where we can check the event triggers.

2 Answers 2

7

These are available in system table pg_event_trigger

Sign up to request clarification or add additional context in comments.

Comments

0

This can show all user-defined event triggers in the current database:

\dy

And, this can show all user-defined event triggers in the current database in detail:

\dy+

And, you can show all user-defined event triggers in the current database with pg_event_trigger as shown below. *There is no way to show all event triggers in all databases at once:

SELECT * FROM pg_event_trigger;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.