From: | Simon Connah <simon(dot)n(dot)connah(at)protonmail(dot)com> |
---|---|
To: | Hanefi Onaldi <Hanefi(dot)Onaldi(at)microsoft(dot)com> |
Cc: | "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org> |
Subject: | RE: [EXTERNAL] Calling stored procedures and functions |
Date: | 2021-03-30 08:46:58 |
Message-ID: | BBLMi7KvZcroWwRhTYgK5mt4FM1AyUOI6HsjbVCMuxw2NXcMMYj3neWLtMeyIESrSfM8rPe3jEeN4zj61qBHZd-1XltX9NjmwPFapo_ZwK0=@protonmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Tuesday, March 30th, 2021 at 09:32, Hanefi Onaldi <Hanefi(dot)Onaldi(at)microsoft(dot)com> wrote:
> Hi Simon,
>
> I think you need to read more on the differences between PostgreSQL functions and procedures. I suggest you use CALL to execute your procedure, instead of a SELECT.
>
> You can also change the procedure into a function and that will also work.
>
> The syntax is:
>
> CALL proc(...)
>
> or
>
> SELECT func(...)
>
> See https://www.postgresql.org/docs/current/sql-call.html for more info.
>
Thank you! I was getting them the wrong way around. Everything seems to be working now. I really appreciate your help.
Simon.
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2021-03-30 11:14:55 | Re: shared buffers |
Previous Message | Hanefi Onaldi | 2021-03-30 08:32:22 | RE: [EXTERNAL] Calling stored procedures and functions |