user3580444
user3580444

Reputation: 33

Show all event triggers in a database in PostgreSQL

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.

Upvotes: 2

Views: 3661

Answers (2)

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;

Upvotes: 0

user330315
user330315

Reputation:

These are available in system table pg_event_trigger

Upvotes: 7

Related Questions