Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ei56w-0006ih-NN for pgsql-general@arkaria.postgresql.org; Sat, 03 Feb 2018 21:12:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei56v-0001jV-8Z for pgsql-general@arkaria.postgresql.org; Sat, 03 Feb 2018 21:12:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ei56u-0001jM-Tv for pgsql-general@lists.postgresql.org; Sat, 03 Feb 2018 21:12:33 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ei56s-000470-AZ for pgsql-general@lists.postgresql.org; Sat, 03 Feb 2018 21:12:31 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 08A2520C59; Sat, 3 Feb 2018 16:12:29 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 03 Feb 2018 16:12:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=FT8OMHfD5KEgqH5P3ZF5OK6zh+DK5 I0A8qG/rhEU7Do=; b=OVHTYPW04CivpJfABzFBTmn+j7yhSK3D1Uk39QozjfFmA uxaUcCL1tHqVt022H6P8G7F/PnCd4PhotvnEs1ugRfV8h3e4FAJAJYPxzAhepUwY UqGdGtR7eKqidDeR7vPHHgThhz1dNN1By5rNpTXzjecFpnM6Yw5xPfMSSlyMRoJK fGfj+WxzhGKILbwHDJ7dHW/hG1Vh0ptZzZtfHT73Bf7A9YQXw0VmbV43jGiPC5kC 68PL9hH3Spo5Hwq+Rz4bdG1lNc5ri8ntPxA4Zsl3U4vUxfJx9Dn14mMUqqenbtxU KsJxQXGW1tvnLRkvje6bao/o05Q8fJXuDi54fKV7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=FT8OMH fD5KEgqH5P3ZF5OK6zh+DK5I0A8qG/rhEU7Do=; b=TSAUEi0M7UvC+D6K3MQpUV CfjWlC3uDnRwWLUtSAIBMF+s9Gsvk+4xNVseDYjcPD9bSBuKMouHdjwz4Pq5O1K/ aY3oDFlg/PXpRHz5o7ViJcdABo5dM0hYglyTkHyb03js4c6TB1YqBgnNa8jEnxoQ lJxApOvhk6Pmyezm0wnqdkrL8Hu4NBQz/TfsPqYGbAqrrQL9K0s9y60ZmrngTe9K 4qNgm1SQJKIPbWlB3ron0DSIOyTWFtz3YcenpTR8jJQXjPnIdhMWSyV7oCoFG4iz t/CQBSvNy387gVhcoEXru9Qt8qDwATTYFFrAZ1ZW54bENxIhexQ+ouRyRFGYQE3w == X-ME-Sender: Received: from [192.168.1.3] (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 6F8A62463E; Sat, 3 Feb 2018 16:12:28 -0500 (EST) Subject: Re: pgAdmin questions To: bob gailer , pgsql-general@lists.postgresql.org References: <3e48782b-0cf3-945b-9f01-39a852e8669f@gmail.com> <02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com> From: Adrian Klaver Message-ID: Date: Sat, 3 Feb 2018 13:12:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/03/2018 01:00 PM, bob gailer wrote: > On 2/3/2018 3:30 PM, Adrian Klaver wrote: >> On 02/03/2018 12:24 PM, bob gailer wrote: >>> I am using pgAdmin to create functions (and other wonderful purposes). >> >>> >>> Once I have created a function I notice I can't change the arguments >>> or return type. Why is this? The help topic does not address this. >> >> Because pgAdmin is just a client over Postgres and creating functions >> is a Postgres responsibility: >> >> >> https://www.postgresql.org/docs/10/static/sql-createfunction.html >> >> To replace the current definition of an existing function, use CREATE >> OR REPLACE FUNCTION. It is not possible to change the name or argument >> types of a function this way (if you tried, you would actually be >> creating a new, distinct function). Also, CREATE OR REPLACE FUNCTION >> will not let you change the return type of an existing function. To do >> that, you must drop and recreate the function. (When using OUT >> parameters, that means you cannot change the types of any OUT >> parameters except by dropping the function.)" > Thanks. That helps. I was misled by seeing -- DROP FUNCTION > public.test(character varying); at the top of the SQL; now I see it is a > comment. >> >> >> For the below you might get better answers quicker on the pgAdmin list: > Thanks. > Do you refer to pgsql-admin@lists.postgresql.org? No pgadmin-support: https://www.postgresql.org/list/pgadmin-support/ > > -- Adrian Klaver adrian.klaver@aklaver.com