RE: [EXTERNAL] Calling stored procedures and functions - Mailing list pgsql-novice

From Simon Connah
Subject RE: [EXTERNAL] Calling stored procedures and functions
Date
Msg-id BBLMi7KvZcroWwRhTYgK5mt4FM1AyUOI6HsjbVCMuxw2NXcMMYj3neWLtMeyIESrSfM8rPe3jEeN4zj61qBHZd-1XltX9NjmwPFapo_ZwK0=@protonmail.com
Whole thread Raw
In response to RE: [EXTERNAL] Calling stored procedures and functions  (Hanefi Onaldi <Hanefi.Onaldi@microsoft.com>)
List pgsql-novice
On Tuesday, March 30th, 2021 at 09:32, Hanefi Onaldi <Hanefi.Onaldi@microsoft.com> wrote:

> Hi Simon,
>

> I think you need to read more on the differences between PostgreSQL functions and procedures. I suggest you use CALL
toexecute 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.
Attachment

pgsql-novice by date:

Previous
From: Hanefi Onaldi
Date:
Subject: RE: [EXTERNAL] Calling stored procedures and functions
Next
From: Laurenz Albe
Date:
Subject: Re: shared buffers