pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
display function code
3+ messages / 3 participants
[nested] [flat]

* display function code
@ 2005-10-01 16:03 Colton A Smith <smith@cs.utk.edu>
  2005-10-03 00:40 ` Re: display function code Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Colton A Smith @ 2005-10-01 16:03 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: display function code
  2005-10-01 16:03 display function code Colton A Smith <smith@cs.utk.edu>
@ 2005-10-03 00:40 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2005-10-03 01:48   ` Re: display function code Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2005-10-03 00:40 UTC (permalink / raw)
  To: Colton A Smith <smith@cs.utk.edu>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: display function code
  2005-10-01 16:03 display function code Colton A Smith <smith@cs.utk.edu>
  2005-10-03 00:40 ` Re: display function code Bruce Momjian <pgman@candle.pha.pa.us>
@ 2005-10-03 01:48   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2005-10-03 01:48 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Colton A Smith <smith@cs.utk.edu>; pgsql-admin

Bruce Momjian <pgman@candle.pha.pa.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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-10-03 01:48 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-01 16:03 display function code Colton A Smith <smith@cs.utk.edu>
2005-10-03 00:40 ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-10-03 01:48   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox