Bruce Momjian <pgman@xxxxxxxxxxxxxxxx> 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 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq