IN argument keyword not needed - Mailing list pgadmin-support

From Michal Kozusznik
Subject IN argument keyword not needed
Date
Msg-id 55CA0D56.2050401@ifortuna.cz
Whole thread Raw
List pgadmin-support
Hello
I found, that in case of functions which returns TABLE structure,
function arguments are proceeded by IN keyword.
I believe it's because of similarity between 2 methods returning recordset:
- TABLE structure
and
- OUT arguments with conjunction of SETOF

Also please note, that arguments of function which has no OUT arguments
at all, are no proceeded by IN keyword.

Suggestion: remove IN keywords from argument list in case the function
is defined to return TABLE structure.

Examples:

Current state (pgAdmin v.1.20)

CREATE OR REPLACE FUNCTION some_function(IN some_arg INTEGER)
   RETURNS TABLE(some_columns....) AS
...


Suggested state:

CREATE OR REPLACE FUNCTION some_function(some_arg INTEGER)
   RETURNS TABLE(some_columns....) AS
...


with regards


Attachment

pgadmin-support by date:

Previous
From: Donald Kolafa
Date:
Subject: HELP - you have disabled by Dell XPS 13 laptop
Next
From: Alvaro Herrera
Date:
Subject: Re: Fwd: Bug?