pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_proc.prosrc -> can I see the function's source?
3+ messages / 3 participants
[nested] [flat]

* pg_proc.prosrc -> can I see the function's source?
@ 2003-05-15 12:09 Raphael Bauduin <raphael@be.easynet.net>
  2003-05-15 12:20 ` Re: pg_proc.prosrc -> can I see the function's source? Victor Yegorov <viktors.jegorovs@nordlb.lv>
  2003-05-15 14:59 ` Re: pg_proc.prosrc -> can I see the function's source? Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Raphael Bauduin @ 2003-05-15 12:09 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

When I look at the entry of a pg_prc_row, I get the prosrc column. Does
that represent the id of the source of this function? Can I retrieve it
somewhere and take a look at it without pgdump -s (didn't try it yet,
but read in the archives that this would be a solution)?

Example:

select proname,prosrc  from pg_proc where proname='RI_FKey_noaction_del';
       proname        |        prosrc        
----------------------+----------------------
 RI_FKey_noaction_del | RI_FKey_noaction_del
(1 row)


Thanks for your help!

Raph



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

* Re: pg_proc.prosrc -> can I see the function's source?
  2003-05-15 12:09 pg_proc.prosrc -> can I see the function's source? Raphael Bauduin <raphael@be.easynet.net>
@ 2003-05-15 12:20 ` Victor Yegorov <viktors.jegorovs@nordlb.lv>
  1 sibling, 0 replies; 3+ messages in thread

From: Victor Yegorov @ 2003-05-15 12:20 UTC (permalink / raw)
  To: Raphael Bauduin <raphael@be.easynet.net>; +Cc: pgsql-admin

* Raphael Bauduin <raphael@be.easynet.net> [15.05.2003 15:14]:
> Hi all,
> 

I'm using:

=> \df+ function_name

-- 

Victor Yegorov



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

* Re: pg_proc.prosrc -> can I see the function's source?
  2003-05-15 12:09 pg_proc.prosrc -> can I see the function's source? Raphael Bauduin <raphael@be.easynet.net>
@ 2003-05-15 14:59 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Stephan Szabo @ 2003-05-15 14:59 UTC (permalink / raw)
  To: Raphael Bauduin <raphael@be.easynet.net>; +Cc: pgsql-admin


On Thu, 15 May 2003, Raphael Bauduin wrote:

> When I look at the entry of a pg_prc_row, I get the prosrc column. Does
> that represent the id of the source of this function? Can I retrieve it
> somewhere and take a look at it without pgdump -s (didn't try it yet,
> but read in the archives that this would be a solution)?

The below is a function in C, so you won't get it even with a pgdump -s
(it's one of the foreign key triggers defined in
src/backend/utils/adt/ri_triggers.c if I remember location correctly)

>        proname        |        prosrc
> ----------------------+----------------------
>  RI_FKey_noaction_del | RI_FKey_noaction_del




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


end of thread, other threads:[~2003-05-15 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15 12:09 pg_proc.prosrc -> can I see the function's source? Raphael Bauduin <raphael@be.easynet.net>
2003-05-15 12:20 ` Victor Yegorov <viktors.jegorovs@nordlb.lv>
2003-05-15 14:59 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>

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