Postgresql function list omits "out type" parameters
See original GitHub issueSystem information:
OS: Linux Mint 20 DBeaver version: 21.2.2
Connection specification:
- Database: Postgresql 12
Describe the problem you’re observing:
Functions in function list have only in and inout parameters (it omits the out type). Function list and function detail:
Steps to reproduce, if exist:
Step 1. Create test function:
CREATE OR REPLACE FUNCTION public.aaaa_test4(ainpar integer, OUT oout1 numeric, INOUT oout2 character varying)
RETURNS record
LANGUAGE plpgsql
AS $function$
begin
return;
END
$function$
;
Step 2. Reload and see the function list.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
15: 38.5. Query Language (SQL) Functions - PostgreSQL
Parameters can be marked as IN (the default), OUT , INOUT , or VARIADIC . An INOUT parameter serves as both an input...
Read more >Documentation: 15: 10.3. Functions - PostgreSQL
Functions that have default values for parameters are considered to match any call that omits zero or more of the defaultable parameter positions....
Read more >Documentation: 15: CREATE FUNCTION - PostgreSQL
If the function is not supposed to return a value, specify void as the return type. When there are OUT or INOUT parameters,...
Read more >Documentation: 15: 4.3. Calling Functions - PostgreSQL
PostgreSQL allows functions that have named parameters to be called using either positional or named notation. Named notation is especially useful for ...
Read more >Documentation: 15: 43.3. Declarations - PostgreSQL
PL/pgSQL variables can have any SQL data type, such as integer , varchar ... To call a function with OUT parameters, omit the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, my mistake then. It makes sense - this way it shows calling parameters. But sometimes it can be useful to show all params. May be make it configurable? Something like “Out parameters display”: None (default)/All in one group/Separated (what you suggest). (I personally would like another possibility - optionally show parameters name, but that’s for another issue 😉 ).
verified