X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DF2F2D9D63 for ; Sun, 2 Oct 2005 22:48:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04804-02 for ; Mon, 3 Oct 2005 01:48:37 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7241CD998C for ; Sun, 2 Oct 2005 22:48:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j931men8010185; Sun, 2 Oct 2005 21:48:40 -0400 (EDT) To: Bruce Momjian Cc: Colton A Smith , pgsql-admin@postgresql.org Subject: Re: display function code In-reply-to: <200510030040.j930euU13426@candle.pha.pa.us> References: <200510030040.j930euU13426@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sun, 02 Oct 2005 20:40:56 -0400" Date: Sun, 02 Oct 2005 21:48:40 -0400 Message-ID: <10184.1128304120@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/21 X-Sequence-Number: 19093 Bruce Momjian 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