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 1p8ZpQ-0004Ug-GD for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2022 04:38:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p8ZpP-0005JJ-Ez for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2022 04:38:39 +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 1p8ZpP-0005J3-75 for pgsql-bugs@lists.postgresql.org; Fri, 23 Dec 2022 04:38:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p8ZpI-000455-84 for pgsql-bugs@lists.postgresql.org; Fri, 23 Dec 2022 04:38:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2BN4cFPC2309555; Thu, 22 Dec 2022 23:38:15 -0500 From: Tom Lane To: Dave Cramer cc: dafoer_x@163.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17728: When jdbc calls the stored procedure, portal->stmts in FillPortalStore is null, causing a processing In-reply-to: References: <17728-64af72bf9747ff0a@postgresql.org> Comments: In-reply-to Dave Cramer message dated "Thu, 22 Dec 2022 14:25:57 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2309553.1671770295.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 22 Dec 2022 23:38:15 -0500 Message-ID: <2309554.1671770295@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dave Cramer writes: > On Thu, 22 Dec 2022 at 10:49, PG Bug reporting form > wrote: >> #0 pgss_store (query=3D0x2d55138 "call p1($1)", >> queryId=3D16705933007615826313, >> query_location=3D1702063721, query_len=3D1763734642, kind=3DPGSS_EXEC, >> total_time=3D3341.1963460000002, >> rows=3D0, bufusage=3D0x7ffc2e4ddc20, walusage=3D0x7ffc2e4ddcf0, jstate=3D= 0x0) >> at pg_stat_statements.c:1225 > I just tried the same code with no issues. This looks very much like the bug fixed by commit 495e73c20 [1]. I wonder whether the server is really 14.6, or something older, because that fix shipped in 14.6. regards, tom lane [1] https://git.postgresql.org/gitweb/?p=3Dpostgresql.git&a=3Dcommitdiff&h= =3D495e73c20