Re: display function code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Colton A Smith <smith(at)cs(dot)utk(dot)edu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: display function code
Date: 2005-10-03 01:48:40
Message-ID: 10184.1128304120@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-10-03 01:53:42 Re: Vacuum Full Analyze Stalled
Previous Message Bruce Momjian 2005-10-03 00:40:56 Re: display function code