From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Vladimir Jovanovic <vladimir.jovanovic@aparteko.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8168: duplicated function signature
Date: Fri, 17 May 2013 19:10:53 +0300
Message-ID: <5196568D.9090307@vmware.com> (raw)
In-Reply-To: <CADkRnnitW8ZdkLZyXXRuL2uqE3F=-ARKKbpDL2a84Vwp4vMz1A@mail.gmail.com>
References: <E1UdHwG-00021u-VN@wrigleys.postgresql.org>
<51963AA8.5040701@vmware.com>
<CADkRnnitW8ZdkLZyXXRuL2uqE3F=-ARKKbpDL2a84Vwp4vMz1A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 17.05.2013 18:53, Vladimir Jovanovic wrote:
> Hi Heikki,
>
> Here you can find attached .csv semicolon separated made by :"SELECT * FROM
> pg_proc WHERE proname LIKE 'sp_get_league_prediction".
> "\df sp_get_league_prediction" is also attached.
>
> Both functions are returning the same setof record:
>
> ---------------------------
> CREATE OR REPLACE FUNCTION sp_get_league_prediction(IN _id bigint, IN _rank
> integer, IN _log_in_expectence double precision, IN _feathers_gained
> integer, IN _tokens_all integer, IN _tokens_active integer, IN _score
> integer)
> RETURNS SETOF record AS
> $BODY$
> ...
> ---------------------------
> CREATE OR REPLACE FUNCTION sp_get_league_prediction(_id bigint, _rank
> integer, _log_in_expectence double precision, _feathers_gained integer,
> _tokens_all integer, _tokens_active integer, _score integer)
> RETURNS SETOF record AS
> $BODY$
> ...
No. One of the functions was created with something like above. But the
other one takes no arguments, and *returns* a table with those columns.
Try "\ef sp_get_league_prediction()" to get a CREATE OR REPLACE FUNCTION
statement to recreate the latter; you will see that it looks something
like this:
CREATE OR REPLACE FUNCTION public.sp_get_league_prediction()
RETURNS TABLE(id bigint, _rank integer, _log_in_expectence double
precision, _feathers_gained integer, _tokens_all integer, _tokens_active
integer, _score integer)
AS ...
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, vladimir.jovanovic@aparteko.com
Subject: Re: BUG #8168: duplicated function signature
In-Reply-To: <5196568D.9090307@vmware.com>
References: <E1UdHwG-00021u-VN@wrigleys.postgresql.org> <51963AA8.5040701@vmware.com> <CADkRnnitW8ZdkLZyXXRuL2uqE3F=-ARKKbpDL2a84Vwp4vMz1A@mail.gmail.com> <5196568D.9090307@vmware.com>
* 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