Re: difference between pg_triggers and information_schema.triggers

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: aditya desai <admad123(at)gmail(dot)com>
Cc: Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: difference between pg_triggers and information_schema.triggers
Date: 2021-08-11 18:37:27
Message-ID: CAKFQuwYYxi5BdgiKK5eOP6rb+bnL2EXFiaf2d7=qvborszJpzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wednesday, August 11, 2021, aditya desai <admad123(at)gmail(dot)com> wrote:

> Hi All,
> What is the difference between pg_triggers and
> information_schema.triggers? I want to list all triggers in the database.
>

Read the docs for information_schema.triggers.

> What is the best way to list all objects in PostgreSQL?(similar to
> all_objects in Oracle).
>
>
With pg_catalog tables. But I’m not aware of anything that combines all
object types into a single result. Seems like an easy enough query to put
together though.

David J.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message aditya desai 2021-08-11 18:54:18 Re: difference between pg_triggers and information_schema.triggers
Previous Message aditya desai 2021-08-11 18:28:22 difference between pg_triggers and information_schema.triggers