display function code
display function code
От:
Colton A Smith <smith@cs.utk.edu>
Дата:
Hi: 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? Thanks
Re: display function code
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Colton A Smith wrote: > Hi: > > 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. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Re: display function code
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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