From: Guyren Howe <guyren@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: raf <raf@raf.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Bysani, Ram <rbysani@informatica.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Need help with clarification on stored procedure support in PostGreSQL database
Date: Mon, 8 Mar 2021 20:31:53 -0800
Message-ID: <af8a3c82-a207-437c-a8ed-9014cb7428f1@Spark> (raw)
In-Reply-To: <20210309005300.gdp2kjoy6bjwynaa@raf.org>
References: <BYAPR03MB4903C53A8BB7EFF5EA289674A6949@BYAPR03MB4903.namprd03.prod.outlook.com>
<29836c19-5321-7093-bc88-a82c6a497a36@aklaver.com>
<20210308222228.gljiuauwdd4p3kxs@raf.org>
<1932630.1615246316@sss.pgh.pa.us>
<20210309005300.gdp2kjoy6bjwynaa@raf.org>
This seems like an important consideration. I’ve spent 10 minutes searching the documentation for PG 11 and can’t find where it is documented. Perhaps it should be made more prominent?
On Mar 8, 2021, 16:53 -0800, raf <raf@raf.org>, wrote:
> On Mon, Mar 08, 2021 at 06:31:56PM -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> > raf <raf@raf.org> writes:
> > > Is there any important different between a stored procedure and
> > > a stored function that returns void? I've been using functions
> > > for everything but calling them procedures in my head (even though
> > > most of them do return a value or result set).
> >
> > A procedure can commit or rollback a transaction (and then start
> > a new one).
> >
> > regards, tom lane
>
> thanks.
>
> cheers,
> raf
>
>
>
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: guyren@gmail.com, tgl@sss.pgh.pa.us, raf@raf.org, adrian.klaver@aklaver.com, rbysani@informatica.com
Subject: Re: Need help with clarification on stored procedure support in PostGreSQL database
In-Reply-To: <af8a3c82-a207-437c-a8ed-9014cb7428f1@Spark>
References: <BYAPR03MB4903C53A8BB7EFF5EA289674A6949@BYAPR03MB4903.namprd03.prod.outlook.com> <29836c19-5321-7093-bc88-a82c6a497a36@aklaver.com> <20210308222228.gljiuauwdd4p3kxs@raf.org> <1932630.1615246316@sss.pgh.pa.us> <20210309005300.gdp2kjoy6bjwynaa@raf.org> <af8a3c82-a207-437c-a8ed-9014cb7428f1@Spark>
* 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