Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7ake-0004Lm-Ij for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jan 2022 10:21:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7akd-0003KL-AT for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jan 2022 10:21:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7akc-0003KC-Vb for pgsql-hackers@lists.postgresql.org; Wed, 12 Jan 2022 10:21:07 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n7aka-0006WI-2h for pgsql-hackers@postgresql.org; Wed, 12 Jan 2022 10:21:06 +0000 Received: by mail-pj1-x102c.google.com with SMTP id o3so3929932pjs.1 for ; Wed, 12 Jan 2022 02:21:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=42VCp4CwUT8v9RujulqXzoUFspMaIGg+Ic5pWOMtZY0=; b=L7Jhv0wkcgryn4kok00JpP+6X+beUd6qLT+PvWw+k8jzQkUQmocAnaniUgv5c9zpcl cwkeYMLPCAYNQLEeV+l5RJCOS79dLYKrgUToRIXinlJoqYkoh1zdp/8IQVaNTuduCav2 3euEx23mDkJv4+SnhemJ+/cJtTClBZo/pcFTFE2cXuOk+i2DPS0jxm8He7j7DXrWLT04 IZsjIBkF60jSJ8A44PjVSv2/XKatr0N8u1g9NLCbsGJ6++Iaze+w3l7FCDSIfJZUDVE6 nl8IehxX0Plm/shqrxjORFytHJh1rndXPtwITfHxpRcIcHzEReg0knc+2HtxsK+nC4LL m2TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=42VCp4CwUT8v9RujulqXzoUFspMaIGg+Ic5pWOMtZY0=; b=5cp0PXSquzJohL0TEOfzvNuBKfM8tO+mg1T99FQoYGkeatpaO1ayrAigSIy5dWO2iR opGIfzgHCcCuEbiX2FkPuIfMe4QklJ6T4myFSMdmjWHG4Yi0iYWlc32sA4eB0AR6Be// 9kkCBh7OXRdc88uUtZb2SV0e3Bre1Wz84rZsMrLJYuWDHALrxT6w7MTDWRFAUuqtHHFf 1FNoTDm2qxlXkxDqVWphrNwMSMds+geHGn1TSOs1lK+TEpTw3xon1+NsnaI3R+3tZt84 ZwKCFbudGpVw7t9qLYk/M6vHE1hnPHNTg5SYIetWiQKui7N6zdi1crlULvLEksh5lqCM xk+Q== X-Gm-Message-State: AOAM533D5sO6P7qpb3CjYgQWtiIP3a1hGdWZnJOcZMvSX6uFtb8QKxl/ d8oQ3c8iw4t9b7FG/tZAl+M= X-Google-Smtp-Source: ABdhPJzPZDdwHHpIYtG+AjyfShgCmS8V1ldxCffc8v5p44hbrKrKzG6ByQCP11MYx8z/JhTENwqRrA== X-Received: by 2002:a63:9e09:: with SMTP id s9mr7879092pgd.264.1641982861686; Wed, 12 Jan 2022 02:21:01 -0800 (PST) Received: from jrouhaud (1-171-174-202.dynamic-ip.hinet.net. [1.171.174.202]) by smtp.gmail.com with ESMTPSA id l11sm13439847pfu.115.2022.01.12.02.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 02:21:00 -0800 (PST) Date: Wed, 12 Jan 2022 18:20:55 +0800 From: Julien Rouhaud To: Zhihong Yu Cc: Peter Eisentraut , pgsql-hackers , vignesh C Subject: Re: dynamic result sets support in extended query protocol Message-ID: <20220112102055.fn5gpnt2lw6ii35o@jrouhaud> References: <6e747f98-835f-2e05-cde5-86ee444a7140@2ndquadrant.com> <20201009184625.4hfgpcxzd6jfredb@alap3.anarazel.de> <7e404216-62b5-93da-1a74-c1d5aa1fe47a@2ndquadrant.com> <6f038f18-0f2b-5271-a56f-1770577f246c@enterprisedb.com> <525d517f-72ab-9488-211b-ad3cb0aea3a3@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Aug 30, 2021 at 02:11:34PM -0700, Zhihong Yu wrote: > On Mon, Aug 30, 2021 at 1:23 PM Peter Eisentraut < > peter.eisentraut@enterprisedb.com> wrote: > > > rebased patch set > > + WITH RETURN > + WITHOUT RETURN > + > + > + 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. The cfbot reports that the patch doesn't apply anymore: http://cfbot.cputube.org/patch_36_2911.log. Since you mentioned that this patch depends on the SHOW_ALL_RESULTS psql patch which is still being worked on, I'm not expecting much activity here until the prerequirements are done. It also seems better to mark this patch as Waiting on Author as further reviews are probably not really needed for now.