Search Postgresql Archives

Re: Stored function | Grayed out option when I try modify the return type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Am 12.07.2018 um 11:28 schrieb Abelardo León González:
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.

yeah, i understand.


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.

it's not a limitation of PGAdmin.

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.

You can pull out the whole function definition, for instance within psql with \ef <function_name>, safe this into a file, drop the function, edit the file and create the new function.
Seems a bit of strange, but that's the usual way.

Sorry for my English (I am non English native).

the same for me ;-)


Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux