pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sathiya psql <sathiya.psql@gmail.com>
To: pgsql-performance@postgresql.org
Subject: list user created triggers
Date: Tue, 11 Mar 2008 19:08:33 +0530
Message-ID: <f966c2ee0803110638i57c94c4k533a635bcf9e82fb@mail.gmail.com> (raw)

how to find trigger names in my database ?

using psql 7.4

the following query shows system triggers, i want only to list the
triggers created by me

select relname, tgname, tgtype, proname, prosrc, tgisconstraint,
tgconstrname, tgconstrrelid, tgdeferrable, tginitdeferred, tgnargs,
tgattr, tgargs from (pg_trigger join pg_class on tgrelid=pg_class.oid)
join pg_proc on (tgfoid=pg_proc.oid);



view thread (3+ messages)  latest in thread

Message-ID: <f966c2ee0803110638i57c94c4k533a635bcf9e82fb@mail.gmail.com>
Permalink:  ../f966c2ee0803110638i57c94c4k533a635bcf9e82fb@mail.gmail.com/
Also on:    postgresql.org/message-id/f966c2ee0803110638i57c94c4k533a635bcf9e82fb@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sathiya.psql@gmail.com
  Subject: Re: list user created triggers
  In-Reply-To: <f966c2ee0803110638i57c94c4k533a635bcf9e82fb@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox