Re: How to see function & triggers definition?

From: ALI ÇELIK <ali(at)verus(dot)com(dot)tr>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to see function & triggers definition?
Date: 2006-07-15 08:14:06
Message-ID: e9a84o$1c0n$2@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
this can be help you;
XYZ: function/trigger name

SELECT p.proname AS name, p.oid, p.proargtypes AS args, ds.description , p.prorettype AS rettype, p.proretset, p.proisstrict AS strict, p.prosrc AS body, l.lanname AS lang, u.usename, p.prosecdef, p.provolatile, p.proisagg, n.nspname, proargnames FROM pg_proc p LEFT OUTER JOIN pg_description ds ON ds.objoid = p.oid INNER JOIN pg_namespace n ON p.pronamespace = n.oid INNER JOIN pg_language l ON l.oid = p.prolang INNER JOIN pg_user u ON u.usesysid = p.proowner WHERE p.proname = 'XYZ' AND lower(n.nspname) = 'public' ORDER BY p.proname, n.nspname

""Hiren Gajjar"" <gajjar(dot)hiren(at)gmail(dot)com>, haber iletisinde sunlari yazdi:fe793ec80607140538j9440da8g5a744346d61ff7cb(at)mail(dot)gmail(dot)com(dot)(dot)(dot)
Hi,

Could anyone help me with this. I want to see the definition of functions & triggres for a perticular table of database.
How do I do this? How do I find whether is it Postgres SQL block or implemented in C/C++?

Thanks & Regards,
Hiren.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message qnick 2006-07-15 11:04:50 Browse database , schema
Previous Message A. Kretschmer 2006-07-15 06:04:11 Re: How to access a table from one database to another database