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: pg_get_functiondef and overloaded functions
Date: Fri, 30 Oct 2009 00:12:26 +0100
Message-ID: <hcd7gq$olg$1@ger.gmane.org> (raw)

Hi,

I'm playing around with the new pg_get_functiondef() function but I can't get it to work when I need to specify the argument list. 

select pg_get_functiondef('foo'::regproc)

works without problems. 

However if I have e.g. foo(int) and foo(int, int) I can't get this to work. 

I tried 

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?

Regards
Thomas




view thread (3+ messages)  latest in thread

Message-ID: <hcd7gq$olg$1@ger.gmane.org>
Permalink:  ../hcd7gq$olg$1@ger.gmane.org/
Also on:    postgresql.org/message-id/hcd7gq$olg$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: <hcd7gq$olg$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