pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Saii <saiisia@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Source of User Defined functions.
Date: Tue, 9 Sep 2008 16:49:40 -0400
Message-ID: <a4213bce0809091349k4f4c8c68ic2d05d3792e443d9@mail.gmail.com> (raw)

Hello,

  I have a questions regarding the location of source code of user defined
functions in Postgres. I used the following query to get all function names
but I
  do not see the source code of the user defined functions. In the 'prosrc'
column, data is available for trigger functions only. Is there any other
table/column where function source code can be found?

SELECT p.proname, p.pronargs, t.typname,p.proowner, p.prosrc
  FROM pg_proc p, pg_language l, pg_type t
  WHERE p.prolang = l.oid
    and p.prorettype = t.oid
    and l.lanname in ('sql', 'plpgsql'  )
    and proowner = 964227
  ORDER BY proname;


  Thanks much
  Saii

view thread (2+ messages)  latest in thread

Message-ID: <a4213bce0809091349k4f4c8c68ic2d05d3792e443d9@mail.gmail.com>
Permalink:  ../a4213bce0809091349k4f4c8c68ic2d05d3792e443d9@mail.gmail.com/
Also on:    postgresql.org/message-id/a4213bce0809091349k4f4c8c68ic2d05d3792e443d9@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-admin@postgresql.org
  Cc: saiisia@gmail.com
  Subject: Re: Source of User Defined functions.
  In-Reply-To: <a4213bce0809091349k4f4c8c68ic2d05d3792e443d9@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