Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F16DC2E01EE for ; Tue, 11 Mar 2008 10:44:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00414-03 for ; Tue, 11 Mar 2008 10:44:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by postgresql.org (Postfix) with ESMTP id 350CA2E00E4 for ; Tue, 11 Mar 2008 10:44:21 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so578838ana.33 for ; Tue, 11 Mar 2008 06:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=OKzQDqHjnYOqCBUsWjJkxeXX4+URT1yNZ/PTocRGfW8=; b=tKXlSjbWpZApaRXpbOyLB/6Ji3bvpijxW4dqJ2LRPXLNWcStDuJkX2Eh5rZWzqVk54wcWQ7mc2R1POb6z96LC6hFnfTvJREzovCZHu9y/dCitNPqluS0fSp+YdsNMthyS9nIVK/h83KM/wthGFPr38Jz2UrmeCcAswJTZSeh4Mk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=FRqjd5O078Zcr5MMWagmgRY4c15DasUMhrj9n3rIQLbAkGtyc9f8vFlzUuTtqFKOgnWGx0xxJt/VeS1Pek/1ao0+Tl0cjtlB35P/wtSlGGzJ4Bb7qDuW6hUZi8ML2QfxRxtEVhbSLkX4CUK+xySsolUJjyY4gv0aZVvKVARHq+g= Received: by 10.100.41.16 with SMTP id o16mr13359747ano.24.1205243059560; Tue, 11 Mar 2008 06:44:19 -0700 (PDT) Received: by 10.100.105.20 with HTTP; Tue, 11 Mar 2008 06:44:19 -0700 (PDT) Message-ID: Date: Tue, 11 Mar 2008 19:14:19 +0530 From: "sathiya psql" To: pgsql-admin@postgresql.org Subject: list user created triggers MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2748_31464625.1205243059553" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/83 X-Sequence-Number: 28566 ------=_Part_2748_31464625.1205243059553 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, 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); ------=_Part_2748_31464625.1205243059553 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi,

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); ------=_Part_2748_31464625.1205243059553--