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 1nnMDf-0000Rs-LW for pgsql-sql@arkaria.postgresql.org; Sat, 07 May 2022 15:19:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nnMDe-0002wT-Gy for pgsql-sql@arkaria.postgresql.org; Sat, 07 May 2022 15:19:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnMDe-0002wK-8n for pgsql-sql@lists.postgresql.org; Sat, 07 May 2022 15:19:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnMDb-00055c-SE for pgsql-sql@lists.postgresql.org; Sat, 07 May 2022 15:19:41 +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 247FJbLe3099040; Sat, 7 May 2022 11:19:37 -0400 From: Tom Lane To: Shaozhong SHI cc: pgsql-sql Subject: Re: Recursive query - ERROR: invalid memory alloc request size 1073741824 In-reply-to: References: Comments: In-reply-to Shaozhong SHI message dated "Sat, 07 May 2022 14:23:53 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3099038.1651936777.1@sss.pgh.pa.us> Date: Sat, 07 May 2022 11:19:37 -0400 Message-ID: <3099039.1651936777@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Shaozhong SHI writes: > There is a loop of recursive query. It runs at a point where it stops. > This error turned up.- ERROR: invalid memory alloc request size 1073741824 Might be a bug, but with no details it's impossible to tell. https://wiki.postgresql.org/wiki/Guide_to_reporting_problems regards, tom lane