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 1ei4vD-0005mu-0N for pgsql-general@arkaria.postgresql.org; Sat, 03 Feb 2018 21:00:27 +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 1ei4vB-0005Qv-T8 for pgsql-general@arkaria.postgresql.org; Sat, 03 Feb 2018 21:00:25 +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 1ei4vB-0005Ql-Hy for pgsql-general@lists.postgresql.org; Sat, 03 Feb 2018 21:00:25 +0000 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ei4v8-0003ph-78 for pgsql-general@lists.postgresql.org; Sat, 03 Feb 2018 21:00:24 +0000 Received: by mail-yw0-x244.google.com with SMTP id u21so15820876ywc.2 for ; Sat, 03 Feb 2018 13:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=KQ6Y3+HduK3vtvdxVNu66qCKiufbuT7VKZ0GPdMgD94=; b=DFjb6z6zVbCnfkTFUG+mSNH9NgIyxVdyijeOKcXe6O0Yw9LnPwqJfgWfh3+UYLsAFn XlrMG9r3aLpmrUugN0po8e1699vvj75Coo6vm10NhKYCMM6x0trLkCUahpCKna70v8TQ 2Hi6UdCgccuylL6ujCTxW2VrrFNA6uMAaljY48qa7k3KmBsPjrmH9DlyZ/ZhBxQh1EJO xzdIAzL5Xki7PeiZxwU83x7H7XySUkh7tY/eNzRffyeFkFRbwfpb38NwULvtLyFbcjqa 4b/G+xMomn0X4RHREse4T8PpxAJGRI5Tlez43c2K5acv0nHo3fRQ2F2K2TQp7DHwYGcC g7Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=KQ6Y3+HduK3vtvdxVNu66qCKiufbuT7VKZ0GPdMgD94=; b=siQ5CDBwuCdu7I2IY84sqWedFlCX2eZKxYGTAUVU71WXjO+IE1ptZYEkIjFZJbL6Nz iyzoXEBhFOTYqyN2WQ1sAriK/S+Q9ovQLEVKiepRyr3KD7KrGCEnA7kAqRbxrAtpdCZ1 0qfIetXKLVwYzLZ2iSLO5cJqaJLFZvyGT130ZIZCVhVhKFW01U091RNbBOEJzq+OcIFx iWZe78JjVLhBiteDhYtBu6TLzAIesjQpGEciy9uW+cM/y+NMc0DfhKWAlJdFIMYFV25K +Vb5XYmq7XY9ya3EyLKHtruumKIQwPxDYpK43Qt76/w11938z97/l6pkWKX2vCeOuvR1 lI4Q== X-Gm-Message-State: AKwxyteu7FhAkypYHPNXXxyC5ezMRAJUq30fLxBHo76nIc5Gua2iFNzm SKydRapwxSezjd1AikHSchUrrQ== X-Google-Smtp-Source: AH8x226EcfNwP9HJwObkWgCg3FxTw4y3MMYAdVENJgGwsI6S5U4zgv9PyKLYyow6Uu5axWm2NdsBLA== X-Received: by 10.13.230.3 with SMTP id p3mr29466281ywe.137.1517691620088; Sat, 03 Feb 2018 13:00:20 -0800 (PST) Received: from [192.168.0.101] (cpe-24-211-224-19.nc.res.rr.com. [24.211.224.19]) by smtp.gmail.com with ESMTPSA id q16sm1838809ywa.103.2018.02.03.13.00.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Feb 2018 13:00:18 -0800 (PST) Subject: Re: pgAdmin questions To: Adrian Klaver , pgsql-general@lists.postgresql.org References: <3e48782b-0cf3-945b-9f01-39a852e8669f@gmail.com> From: bob gailer Message-ID: <02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com> Date: Sat, 3 Feb 2018 16:00:17 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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?