From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Guyren Howe <guyren@gmail.com>
Cc: 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: Tue, 09 Mar 2021 17:21:49 -0500
Message-ID: <2047266.1615328509@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZVbMym9OUqcb8b_soGg3e4+XGHkvKoL-AsH7N42CeKUg@mail.gmail.com>
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>
<1994410.1615264880@sss.pgh.pa.us>
<CAKFQuwZw0YzQU0GLBtJSdnMcC42kjtkrQWJ_E7w8CeaKhbKNMw@mail.gmail.com>
<2043807.1615323448@sss.pgh.pa.us>
<CAKFQuwZVbMym9OUqcb8b_soGg3e4+XGHkvKoL-AsH7N42CeKUg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> The omission of the "OUT" parameter mode seems intentional since at present
> our procedures do not support OUT mode parameters.
Um, I just created one. I think this *used* to be true, and this bit of
the docs didn't get fixed. If I back-patch this, I'll have to research
when it changed.
> Instead of "The difference" or "One difference" I would suggest: "However,
> a procedure does not return a value, so there is no return type
> declaration; though a procedure can declare INOUT (but not plain OUT)
> parameters."
Not sure if that's an improvement.
> Relocating the links to the description instead of usage is good. The
> additional procedure link after the examples seems redundant, particularly
> as the linked to location doesn't actually have more examples.
I was modeling that on the existing pattern in create_function.sgml,
which has similar verbiage in the EXAMPLES section. But I suppose
we could drop that if we have a link in the description section.
regards, tom lane
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: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, peter.eisentraut@enterprisedb.com, guyren@gmail.com, 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: <2047266.1615328509@sss.pgh.pa.us>
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> <1994410.1615264880@sss.pgh.pa.us> <CAKFQuwZw0YzQU0GLBtJSdnMcC42kjtkrQWJ_E7w8CeaKhbKNMw@mail.gmail.com> <2043807.1615323448@sss.pgh.pa.us> <CAKFQuwZVbMym9OUqcb8b_soGg3e4+XGHkvKoL-AsH7N42CeKUg@mail.gmail.com> <2047266.1615328509@sss.pgh.pa.us>
* 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