pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: OID for  pg_get_functiondef
Date: Mon, 02 May 2011 19:23:41 +0200
Message-ID: <ipmpaq$f3h$1@dough.gmane.org> (raw)
In-Reply-To: <5sntr656p8qf7se8s74m80330kaoogs93a@4ax.com>
References: <5sntr656p8qf7se8s74m80330kaoogs93a@4ax.com>

jtkells@verizon.net wrote on 02.05.2011 18:52:
> I've just started working on an 8.4 database and I have been asked to
> extract all the functions source code stored in various databases and
> schemas so they  can be put into a repository for the developers.  I'm
> planning to use  pg_get_functiondef(OID) but I am having a hard time
> finding the OID for functions.  I've looked into the
> information_schema and the pg_catalog schemas and have found
> information on functions but none of them seem to have the OID of the
> function.  Can anyone please tell how to get the OID for a function
> within a schema  and or if there is a better way.
>
> Thanks
>

select pg_function_def(oid)
from pg_proc
where proname = 'your_function'





view thread (4+ messages)  latest in thread

Message-ID: <ipmpaq$f3h$1@dough.gmane.org>
Permalink:  ../ipmpaq$f3h$1@dough.gmane.org/
Also on:    postgresql.org/message-id/ipmpaq$f3h$1@dough.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: OID for  pg_get_functiondef
  In-Reply-To: <ipmpaq$f3h$1@dough.gmane.org>

* 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