From: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, vignesh C <vignesh21(at)gmail(dot)com> |
Subject: | Re: dynamic result sets support in extended query protocol |
Date: | 2021-08-30 21:11:34 |
Message-ID: | CALNJ-vTHehDOEUTD6iBxaLhQAYvLDOrTRn0vVW+wVscy-VtUiQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Aug 30, 2021 at 1:23 PM Peter Eisentraut <
peter(dot)eisentraut(at)enterprisedb(dot)com> wrote:
> rebased patch set
>
> On 22.07.21 08:06, vignesh C wrote:
> > On Tue, Jun 29, 2021 at 7:10 PM Peter Eisentraut
> > <peter(dot)eisentraut(at)enterprisedb(dot)com> wrote:
> >>
> >> Here is an updated patch with some merge conflicts resolved, to keep it
> >> fresh. It's still pending in the commit fest from last time.
> >>
> >> My focus right now is to work on the "psql - add SHOW_ALL_RESULTS
> >> option" patch (https://commitfest.postgresql.org/33/2096/) first, which
> >> is pretty much a prerequisite to this one. The attached patch set
> >> contains a minimal variant of that patch in 0001 and 0002, just to get
> >> this working, but disregard those for the purposes of code review.
> >>
> >> The 0003 patch contains comprehensive documentation and test changes
> >> that can explain the feature in its current form.
> >
> > One of the patch v3-0003-Dynamic-result-sets-from-procedures.patch
> > does not apply on HEAD, please post an updated patch for it:
> > Hunk #1 FAILED at 57.
> > 1 out of 1 hunk FAILED -- saving rejects to file
> > src/include/commands/defrem.h.rej
> >
> > Regards,
> > Vignesh
> >
> >
>
> Hi,
+ <term><literal>WITH RETURN</literal></term>
+ <term><literal>WITHOUT RETURN</literal></term>
+ <listitem>
+ <para>
+ This option is only valid for cursors defined inside a procedure.
Since there are two options listed, I think using 'These options are' would
be better.
For CurrentProcedure(),
+ return InvalidOid;
+ else
+ return llast_oid(procedure_stack);
The word 'else' can be omitted.
Cheers
From | Date | Subject | |
---|---|---|---|
Next Message | Zhihong Yu | 2021-08-30 22:14:28 | Re: Use extended statistics to estimate (Var op Var) clauses |
Previous Message | Andres Freund | 2021-08-30 21:05:29 | Re: archive status ".ready" files may be created too early |