pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: display function code
Date: Sun, 02 Oct 2005 21:48:40 -0400
Message-ID: <10184.1128304120@sss.pgh.pa.us> (raw)
In-Reply-To: <200510030040.j930euU13426@candle.pha.pa.us>
References: <200510030040.j930euU13426@candle.pha.pa.us>

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Colton A Smith wrote:
>> I wrote a function for my database and 'loaded' it, but then
>> misplaced the code.  Is there a query I can issue to retrieve it?

> psql \df+?  That works for non-C languages.

Also, consider doing "pg_dump -s yourdb" and then pulling the CREATE
FUNCTION entry out of the dump script.

			regards, tom lane



view thread (3+ messages)

Message-ID: <10184.1128304120@sss.pgh.pa.us>
Permalink:  ../10184.1128304120@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10184.1128304120@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, smith@cs.utk.edu
  Subject: Re: display function code
  In-Reply-To: <10184.1128304120@sss.pgh.pa.us>
  References: <200510030040.j930euU13426@candle.pha.pa.us> <10184.1128304120@sss.pgh.pa.us>

* 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