CALL and named parameters - Mailing list pgsql-general

From Dominique Devienne
Subject CALL and named parameters
Date
Msg-id CAFCRh-_iLoUtMAtyunw_-O6sgpWo04sOmB38MUVNpuQVSkL_0Q@mail.gmail.com
Whole thread Raw
Responses Re: CALL and named parameters
Re: CALL and named parameters
Re: CALL and named parameters
List pgsql-general
(sorry, this is a rant...).

Was getting an error calling a procedure

ERROR:  procedure ... does not exist
HINT:  No procedure matches the given name and argument types. You
might need to add explicit type casts.

I verify USAGE on the SCHEMA of the proc. OK.
I verify EXECUTE on the FUNCTION. OK.
I verify the names of the parameters, in my CALL with named arguments. OK.

Turns out, thanks to ChatGPT for clueing me in, CALL does NOT support
named parameters. And it's about the least helpful error message
PostgreSQL could have provided IMO. I'd expect something much better
in this specific case, FWIW.

That's two unhelpful error messages in a short time :).

Thanks, and again sorry for the rant. Wasted time on this. --DD



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Libpq.dll
Next
From: Pavel Stehule
Date:
Subject: Re: CALL and named parameters