pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: bob gailer <bgailer@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgAdmin questions
Date: Sat, 3 Feb 2018 13:12:27 -0800
Message-ID: <a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com> (raw)
In-Reply-To: <02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com>
References: <3e48782b-0cf3-945b-9f01-39a852e8669f@gmail.com>
	<ad0e8282-b426-0ebb-da32-9ada87739b7b@aklaver.com>
	<02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com>

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




view thread (7+ messages)  latest in thread

Message-ID: <a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com>
Permalink:  ../a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com/
Also on:    postgresql.org/message-id/a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, bgailer@gmail.com
  Subject: Re: pgAdmin questions
  In-Reply-To: <a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com>
  References: <3e48782b-0cf3-945b-9f01-39a852e8669f@gmail.com> <ad0e8282-b426-0ebb-da32-9ada87739b7b@aklaver.com> <02735dc6-bf44-1af3-cb3d-bb3b8c2e100e@gmail.com> <a6fa69ef-91b6-78bb-10f9-6801129f452a@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox