From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mark <nvpostgres@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Debugging --- ERROR: function does not exist
Date: Sun, 25 Oct 2026 07:54:21 -0700
Message-ID: <941f31ac-e44c-4f10-87e8-1e0ab19f7206@aklaver.com> (raw)
In-Reply-To: <a34cf760-8d6c-49bb-be80-43c5b4a499ee@aklaver.com>
References: <CAAm-KOsbEWVBjv6C80g-WgDF-87Wc90_4X+AWvSO=Fw1ps5=6g@mail.gmail.com>
<322082.1792933209@sss.pgh.pa.us>
<CAAm-KOvOnCw8YEMKh8NLvJoHzm2R3A3_xW=9ecf4+mdMV=xPEg@mail.gmail.com>
<a34cf760-8d6c-49bb-be80-43c5b4a499ee@aklaver.com>
On 10/25/26 7:42 AM, Adrian Klaver wrote:
> On 10/25/26 6:26 AM, Mark wrote:
>> Thanks for the input Tom
>>
>> 1) SHOW search_path; -- produces the following and the function was in
>> the public schema (and both created by the same user)
>>
>> search_path
>> -----------------
>> "$user", public
>>
>> 2) I was calling it with:
>> SELECTgetSessDbKey (jSessionId, jUser, 'functionName'::text,
>> vSessDbKey, vSessRet, vGetSessDbKeyMess);
>
> This is not the same as:
>
> SELECT getSessDbKey (iSessionId => '1234'::text, iUser => 'cmd
> test'::text, iFunction => 'cmd test'::text);
>
> Note 3 parameters vs 6 in the 2).
>
> And from here:
>
> https://www.postgresql.org/docs/current/plpgsql-
> declarations.html#PLPGSQL-DECLARATION-PARAMETERS
>
> "To call a function with OUT parameters, omit the output parameter(s) in
> the function call: ..."
>
Forgot to add there is INOUT if you want to use the parameters either
way, see:
https://www.postgresql.org/docs/current/sql-createfunction.html
"argmode
The mode of an argument: IN, OUT, INOUT, or VARIADIC. If omitted,
the default is IN. Only OUT arguments can follow a VARIADIC one. Also,
OUT and INOUT arguments cannot be used together with the RETURNS TABLE
notation.
"
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, nvpostgres@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Debugging --- ERROR: function does not exist
In-Reply-To: <941f31ac-e44c-4f10-87e8-1e0ab19f7206@aklaver.com>
References: <CAAm-KOsbEWVBjv6C80g-WgDF-87Wc90_4X+AWvSO=Fw1ps5=6g@mail.gmail.com> <322082.1792933209@sss.pgh.pa.us> <CAAm-KOvOnCw8YEMKh8NLvJoHzm2R3A3_xW=9ecf4+mdMV=xPEg@mail.gmail.com> <a34cf760-8d6c-49bb-be80-43c5b4a499ee@aklaver.com> <941f31ac-e44c-4f10-87e8-1e0ab19f7206@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox