Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdXuF-0003iE-O7 for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 09:29:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdXuA-00059u-Ia for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 09:28:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdXuA-00059n-0x for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 09:28:54 +0000 Received: from bosmailout10.eigbox.net ([66.96.189.10]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdXu1-00023B-V9 for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 09:28:53 +0000 Received: from bosmailscan10.eigbox.net ([10.20.15.10]) by bosmailout10.eigbox.net with esmtp (Exim) id 1fdXty-0001cM-Ts for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 05:28:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abelardolg.com; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:In-Reply-To:References:To:From:Reply-To: Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GjXGb5PXa7flZ4Cfvf6ATbC/O2NQ5K8hkrtAtlPNn6E=; b=hX8CeQ/6qnclSt4Kv7jvkOUYRq 2f3h5wxcDZa522YJVYchN2mq81ccpZ/IeP4DoOMA97wNk3I5//FzQX7dwMbUSOy/Efdp7NdU5xy7e D6N2KS/LHXnZTRkzoSII2hlp2SSf3+BYiB3nPKWvRKVVNf3rK5sekMRR8DoU1FpwCWm0p+pn3bXzv L6fhl7+deEE8lwHzYQhHDbo6PBg8cqkUQNjU6g0ZavdzGuyOcuGEZ3eVX/ZBGL08v/ARFm/EYYEeS ULC5s6kHjd8rhEDIxtU+L3pLCkCcv2Xd/F2BT/QXdOaq2MMCpNjpXapVzWJNw2cKSXnoZr+dszjyY zYc13Dzw==; Received: from [10.115.3.31] (helo=bosimpout11) by bosmailscan10.eigbox.net with esmtp (Exim) id 1fdXty-0004BH-Qe for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 05:28:42 -0400 Received: from bosauthsmtp05.yourhostingaccount.com ([10.20.18.5]) by bosimpout11 with id 9lUf1y00706Zqne01lUio4; Thu, 12 Jul 2018 05:28:42 -0400 X-Authority-Analysis: v=2.2 cv=PN5/wbiC c=1 sm=1 tr=0 a=eBvjjtMVdWwtQGedh7GyLg==:117 a=npR7bVknD4CVGo5R2eiQIg==:17 a=IkcTkHD0fZMA:10 a=R9QF1RCXAYgA:10 a=CkE2ZrwPVr4A:10 a=y3PUuF_sAAAA:8 a=epTmVMiNAAAA:8 a=kPg10VR9AAAA:8 a=ds1u2CbkBvKln86oUPoA:9 a=QEXdDO2ut3YA:10 a=gAbV6RU5JhNP_-EwQd7u:22 a=ndEWmUVY6Yapc0oHF_P4:22 a=pbkouhIAMd91kwdrYYoq:22 Received: from [91.215.65.18] (port=59262 helo=LAPTOPE879S5CI) by bosauthsmtp05.eigbox.net with esmtpa (Exim) id 1fdXtv-0002R4-Dm for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 05:28:39 -0400 From: =?utf-8?Q?Abelardo_Le=C3=B3n_Gonz=C3=A1lez?= To: References: <007b01d419b9$ebffc8c0$c3ff5a40$@abelardolg.com> <013a01d419be$32c61530$98523f90$@abelardolg.com> In-Reply-To: Subject: RE: Stored function | Grayed out option when I try modify the return type Date: Thu, 12 Jul 2018 11:28:37 +0200 Message-ID: <001c01d419c2$b7e27b10$27a77130$@abelardolg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLPIf215GC2W8dy/B500x1xdKyEfQJRJO+XAfMwIsIB6JL/06Jj18qg Content-Language: es X-EN-UserInfo: b187995d44daffe51379db9c03c7a87c:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: everis@abelardolg.com Sender: Abelardo León González X-EN-OrigIP: 91.215.65.18 X-EN-OrigHost: unknown List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk -----Mensaje original----- De: Andreas Kretschmer =20 Enviado el: jueves, 12 de julio de 2018 11:07 Para: Abelardo Le=C3=B3n Gonz=C3=A1lez ; = pgsql-general@lists.postgresql.org Asunto: Re: Stored function | Grayed out option when I try modify the = return type Am 12.07.2018 um 10:56 schrieb Abelardo Le=C3=B3n Gonz=C3=A1lez: > Thanks Andreas for your response. > > This is an annoying procedure to modify it. > Why did pgAdmin staff decide to do it this way? It's a waste time! No. Two functions with the same name, but different returns types (for instance) are valid and 2 different functions. You can define a function and change the body of the function, that's = not a problem, but with different returns you will have 2 different = functions. Please don't top-posting here, thx. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com Sorry for top-posting here. :S I won't do it anymore. The idea is to modify the original function in order to meet the = requirements. It's not to create two functions, it's to modify the original one. Internally, pgAdmin should invoke to the "alter function" command so = that this modification doesn't create another function.=20 If I have created funcA with return type smallint but I would like to = modify to integer, pgAdmin shouldn't create another one but let us = directly modify the original funcA's return type. Sorry for my English (I am non English native). I don't know if I have = explained my issue and my complaint correctly. Best regards.