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 1mX5oI-0000Zl-6W for pgsql-bugs@arkaria.postgresql.org; Sun, 03 Oct 2021 18:02:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mX5oG-0000SU-Tm for pgsql-bugs@arkaria.postgresql.org; Sun, 03 Oct 2021 18:02:00 +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 1mX5oG-0000S5-Jd for pgsql-bugs@lists.postgresql.org; Sun, 03 Oct 2021 18:02:00 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mX5oE-00083k-Ec for pgsql-bugs@lists.postgresql.org; Sun, 03 Oct 2021 18:02:00 +0000 Received: by mail-wr1-x431.google.com with SMTP id s21so26052526wra.7 for ; Sun, 03 Oct 2021 11:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0jcpctyTw9yogn8gWi3jBtTA/QCSJb2EkkJafvg1Pi4=; b=dfIMhK4t6LBCS9OsDzUsGVRXfpssPkjNEflH2wQkOippdGZrBkMyCwQl+pB40lHa54 N0CLO3yAAPF+X2xgleRMGHUe8Bi3QRVJ53bYemUnufwBUoYg+LIN+ZRnfX+HY32eCpkR MxkTujWLBktTCPWx/5cKbeddaROdTRq24Oo+qnTyZtD3Csm79YjBXTPl+hybpcifhAmo pOKmp++SX1X+pPgVgoKtZprfi5d6uoWMAMVHv2W/EtZnOSxvXz5C0UGqQcl5UuWoRyAb 1Xse97vgs21USFJuqgy/Bmw1H6oGCMF+cxQlM/kRfEORiNgo9cJk1a/jZr7uVlPTnF/3 9Ksg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0jcpctyTw9yogn8gWi3jBtTA/QCSJb2EkkJafvg1Pi4=; b=j/LAwIa5d+AbUJIGNsCTZilK2gc+4fAQGziBywxkzgfUZ7mduia0BMuEBuyaluIEgG gM5ildqOPE8ZQ7+StodUxyBnY2n82mUsnX/ZIYOw1LRfmeFw5atkggMYL2sbjGDShrEe m0lARh4cBGadjic8Edtq0vD4aZxDv21sa8Fk8M2TpmbOC6V43esp5wZyzQLRPKJP2JfS 9mXy+CRbjNkWaK/zF8/zJ9Tiz6/2z5zKSwDjDfw4Lu4Ecb/mZPrffN+4mlck/2IAedfS 2QIhczhZGBcS6Z9OIkbbmTmposjsDi/aj6w+KNwr7wARhWIyewQpJonhXBeWdsCTevDP LeCA== X-Gm-Message-State: AOAM533fKony9OH/6uQdyvn+bBPN7hsSxrQtdbEvvmol6VImfv04rhEN XnSYeR/lE6xQlsmT3H4wCvY= X-Google-Smtp-Source: ABdhPJxApnbiBkveN5AvfDj7JYM4O0lsasOWIInl87gDVlaO3z6jNtl38t7g7bHRzvTU1P9Zcrfbmg== X-Received: by 2002:adf:dd42:: with SMTP id u2mr9718873wrm.39.1633284117186; Sun, 03 Oct 2021 11:01:57 -0700 (PDT) Received: from smtpclient.apple ([212.51.155.174]) by smtp.gmail.com with ESMTPSA id j1sm1468398wrb.56.2021.10.03.11.01.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Oct 2021 11:01:56 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: BUG #16040: PL/PGSQL RETURN QUERY statement never uses a parallel plan From: Marc Bachmann In-Reply-To: <3899523.1633281768@sss.pgh.pa.us> Date: Sun, 3 Oct 2021 20:01:56 +0200 Cc: Robert Haas , jeremy@musicsmith.net, PostgreSQL mailing lists Content-Transfer-Encoding: quoted-printable Message-Id: References: <16040-eaacad11fecfb198@postgresql.org> <1741.1584847383@sss.pgh.pa.us> <1F2F75F0-27DF-406F-848D-8B50C7EEF06A@gmail.com> <3735893.1633232886@sss.pgh.pa.us> <3899523.1633281768@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I=E2=80=99m happy to help. And sorry that you had to go through that many changes right after the = release. Kind regards Marc > On 3 Oct 2021, at 19:22, Tom Lane wrote: >=20 > I wrote: >> Marc Bachmann writes: >>> A function that inserts data and tries to return with a table now = results in the error `query is not a SELECT`. >>> In previous versions that query succeeded. >=20 >> Hmm ... I'm a bit surprised that that worked before, but since it = did, >> we shouldn't break it. >=20 > Fix pushed, thanks for the report! >=20 > regards, tom lane