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