pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: pg_get_functiondef and overloaded functions
Date: Sat, 31 Oct 2009 00:46:50 +0100
Message-ID: <hcftt9$j5a$1@ger.gmane.org> (raw)
In-Reply-To: <1311.1256877892@sss.pgh.pa.us>
References: <hcd7gq$olg$1@ger.gmane.org>
	<1311.1256877892@sss.pgh.pa.us>

Tom Lane wrote on 30.10.2009 05:44:
>> select pg_get_functiondef('foo(int)'::regproc)
>> select pg_get_functiondef('foo(int4)'::regproc)
>> select pg_get_functiondef('foo(integer)'::regproc)
>> but each time I get the error: function "foo(integer)" does not exist  
>> What am I missing?
> 
> You need to use regprocedure.  regproc is mainly for bootstrap purposes
> --- it accepts a function name only.
> 

Thanks, works fine. 

Where would I find a documentation of all those types? 
The section about pg_get_functiondef (and others) doesn't mention this.

Regards
Thomas




view thread (3+ messages)

Message-ID: <hcftt9$j5a$1@ger.gmane.org>
Permalink:  ../hcftt9$j5a$1@ger.gmane.org/
Also on:    postgresql.org/message-id/hcftt9$j5a$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: pg_get_functiondef and overloaded functions
  In-Reply-To: <hcftt9$j5a$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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