question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Postgresql function list omits "out type" parameters

See original GitHub issue

System 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: obrazek

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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
elringcommented, Oct 12, 2021

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 😉 ).

0reactions
uslsscommented, Feb 11, 2022

verified

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found