Pycharm displays Stored Procedures as Functions
When adding SQL stored procedures in PyCharm, the icon display in the "Structure" Tool window is correct ( A pink circle with a P ), but the database tool window shows stored procedures and function as Functions ( A pink circle with an "F").


Problem 1
If we try to drop the procedure from the Database tool window by right clicking and selecting drop, the generated code is for a "Function" and works only if "function" is changed to "procedure". This becomes a problem if we SHIFT SELECT multiple SProcs and right click and choose drop.

It would have been great if pycharm could display stored procedures and Functions display as separate database objects just like in pgAdmin4.

Problem 2
Display the parameter name along with its datatype for SProcs & Functions just like it displays in pgAdmin4.
Is there a setting to fix this ?
请先登录再写评论。
Could you please share a source code for this object from pgAdmin?
If you double-click on function in DataGrip you will see source code - will there be "create function" or "create procedure"?
What I wrote:
Double clicking the `routine` in the Database Tool window in Pycharm yields this:
From pgAdmin
Can't reproduce the issue. Just checked with PG11 and 12 and everywhere the procedure from your code creates as procedure and is shown as P. Could you please make a screencast of this behavior?