Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdNFG-00017w-Cc for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2013 16:11:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UdNFF-00074o-PI for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2013 16:11:01 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdNFE-00073t-H1 for pgsql-bugs@postgresql.org; Fri, 17 May 2013 16:11:00 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdNFC-0005wU-1B for pgsql-bugs@postgresql.org; Fri, 17 May 2013 16:10:59 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 7B3F22961C; Fri, 17 May 2013 09:10:56 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 787F4B0B04; Fri, 17 May 2013 09:10:56 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 10C21C005A; Fri, 17 May 2013 09:10:51 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 17 May 2013 09:10:50 -0700 (PDT) Message-ID: <5196568D.9090307@vmware.com> Date: Fri, 17 May 2013 19:10:53 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Vladimir Jovanovic CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8168: duplicated function signature References: <51963AA8.5040701@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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