pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark <nvpostgres@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Debugging --- ERROR: function does not exist
Date: Sun, 25 Oct 2026 12:55:53 -0700
Message-ID: <96b548fc-65b8-413a-bdd3-345f94f029c4@aklaver.com> (raw)
In-Reply-To: <335265.1792951220@sss.pgh.pa.us>
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>
	<CAAm-KOtDssDv-qQ=FCP9A6J95k56x=VhQi=1mo5bBEkrStr3qg@mail.gmail.com>
	<ef3c60f8-f21b-4b30-bd2a-140b36fd3954@aklaver.com>
	<CAAm-KOtD7AC-L-=zjnz-0qpGVZKQcshEJ0kMdnJPFscqGsAHxA@mail.gmail.com>
	<75654f90-b8a6-42f7-b71a-2591c4e9bc0d@aklaver.com>
	<335265.1792951220@sss.pgh.pa.us>

On 10/25/26 11:00 AM, Tom Lane wrote:
> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>> On 10/25/26 8:34 AM, Mark wrote:
>>       "To call a function with OUT parameters, omit the output
>>       parameter(s) in
>>       the function call: ..."
> 
> That's what you do in SELECT, but in CALL you write all six
> arguments (and the ones corresponding to OUT parameters
> have to be variables).

 From here:

https://www.postgresql.org/docs/current/sql-call.html

"CALL executes a procedure."

"To call a function (not a procedure), use SELECT instead."

So is the problem down to the OP defining a function not a procedure and 
therefore not being able to use CALL to get at the OUT parameters?

> 
> 			regards, tom lane


-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (25+ messages)  latest in thread

Message-ID: <96b548fc-65b8-413a-bdd3-345f94f029c4@aklaver.com>
Permalink:  ../96b548fc-65b8-413a-bdd3-345f94f029c4@aklaver.com/
Also on:    postgresql.org/message-id/96b548fc-65b8-413a-bdd3-345f94f029c4@aklaver.com

 · 

reply

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, tgl@sss.pgh.pa.us, nvpostgres@gmail.com
  Subject: Re: Debugging --- ERROR: function does not exist
  In-Reply-To: <96b548fc-65b8-413a-bdd3-345f94f029c4@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> <CAAm-KOtDssDv-qQ=FCP9A6J95k56x=VhQi=1mo5bBEkrStr3qg@mail.gmail.com> <ef3c60f8-f21b-4b30-bd2a-140b36fd3954@aklaver.com> <CAAm-KOtD7AC-L-=zjnz-0qpGVZKQcshEJ0kMdnJPFscqGsAHxA@mail.gmail.com> <75654f90-b8a6-42f7-b71a-2591c4e9bc0d@aklaver.com> <335265.1792951220@sss.pgh.pa.us> <96b548fc-65b8-413a-bdd3-345f94f029c4@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