Re: BUG #8168: duplicated function signature

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: vladimir(dot)jovanovic(at)aparteko(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8168: duplicated function signature
Date: 2013-05-17 14:39:38
Message-ID: 23236.1368801578@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
> On 17.05.2013 13:31, vladimir(dot)jovanovic(at)aparteko(dot)com wrote:
>> I noticed that I have two functions with the same signature.
>>
>> 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)
>>
>> sp_get_league_prediction(_id bigint, _rank integer, _log_in_expectence
>> double precision, _feathers_gained integer, _tokens_all integer,
>> _tokens_active integer, _score integer)

> In addition to higher-level checks, there is a unique index in the
> pg_proc catalog that should not let that happen, so to be honest, I find
> that hard to believe. Are you 100% they have the same signature? Are
> they in different schemas, perhaps? In psql, what does "\df
> sp_get_league_prediction" return?

If they are in different schemas, you'd probably need
\df *.sp_get_league_prediction
to see both.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Vladimir Jovanovic 2013-05-17 15:53:10 Re: BUG #8168: duplicated function signature
Previous Message Heikki Linnakangas 2013-05-17 14:24:46 Re: Bugfix patches in the next CF, was: Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases