Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtqiP-000J35-Ki for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Apr 2024 15:15:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rtqiO-008JoR-P0 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Apr 2024 15:15:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtqiO-008JoI-Fe for pgsql-hackers@lists.postgresql.org; Mon, 08 Apr 2024 15:15:20 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rtqiM-001aYQ-1l for pgsql-hackers@postgresql.org; Mon, 08 Apr 2024 15:15:19 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d6fc3adaacso58071911fa.2 for ; Mon, 08 Apr 2024 08:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712589317; x=1713194117; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X3ywpb8GPsE1mdz+NO7ZYexssFSMd6o1VikVJeRn/0Y=; b=heuo647nYjXpn2i3oOpFcJb/5R+WESS3RHftXsYtiehmc0+MwApgrWtC9vg//tyENT 7thQzUVsUs+Zj3RKQszDloLPwtUz8Qi4Q4AIuDE13ffmapGwcNxQyYb0fmjCdhF63vAD S8gEkqYkuFYMk/mz8L7ssEIzmdgQ57rGUPrB9ncDNAizJPocNXXYhHW35zAxEecUsVT8 oxBuivvIL+1asgqggtTKknCb36GXzGY+WIbWx1rlxg1fn7JU+TtoLxK7yqQBpPjrU+Kk 2MkJdk4kIV8KeWcIT6KHXRL1LzsooVT7CpVDI0qqPervrN9t/c9DFK5BHVsTJD2rhfLE hLMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712589317; x=1713194117; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X3ywpb8GPsE1mdz+NO7ZYexssFSMd6o1VikVJeRn/0Y=; b=pqTuGaG9PWhzPVh8Sq8RgqMDtOd3ivaQnhY0t1NUeNmdSvsMko9HBzNGSROmW+HGKD vL7zbu9Itkbd8lz93Ah4ep+46alAiqIroxYTNBx5VWlr4D1pHJYE1AsCNF2rgLqNCazx EQnh7expuf+mgyF68yo7hjJ4vYEkcpO77LmdK/y3J9HmLbPPHTux2sqlURzIzKqqpNBs inLgYnCroU8BvfrFasELn7RnyURDbVdEImDT0uY7sl0Kbtq0E+sdiQi12wXi6pN4IjK1 F/Vj25ghrj7SiEGIiUPqFtOQgpgOCQsNJtaAiX9C667up2tfIXMbQfE7Ey3tTJQiNOMD tmiA== X-Forwarded-Encrypted: i=1; AJvYcCWfO/QCBEWKQ4WxdLOe2bEqo1P6qXFFtPwrMP4kTD2HKRNKw0S+JayhDMfd73nXKipdAYHMxHkI2qHwKju3Mnfpu3HGZ8c6udrsZ4Iu X-Gm-Message-State: AOJu0YwVksotF9ViQhKJ9bkZF8GH0O8/jirIYi2NwzYGygsaeVDvpl/W x0cPg5F44AJ32tRNLgoulLKVtlnZWaqDk1QoCxkWifU64ibroP5H X-Google-Smtp-Source: AGHT+IHiPdteiINKnqrXlEdFQVZ988Vnw6F/7b7/FU/Bd9OVw9Nue4y2GethOZapzEwnrVC/5FbQKQ== X-Received: by 2002:a2e:83d5:0:b0:2d6:85ec:fb49 with SMTP id s21-20020a2e83d5000000b002d685ecfb49mr6298772ljh.28.1712589316965; Mon, 08 Apr 2024 08:15:16 -0700 (PDT) Received: from [1.0.0.7] ([178.155.25.248]) by smtp.gmail.com with ESMTPSA id s25-20020a2e9c19000000b002d89baa50adsm106472lji.100.2024.04.08.08.15.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 08:15:16 -0700 (PDT) Message-ID: <65cb266f-cfb8-9195-5398-5dcc93bec13e@gmail.com> Date: Mon, 8 Apr 2024 18:15:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: psql's FETCH_COUNT (cursor) is not being respected for CTEs Content-Language: en-US To: Tom Lane Cc: Daniel Verite , Laurenz Albe , PostgreSQL Hackers , Robert Haas , Jakub Wartak References: <10117fba-890b-46ac-9316-cae83108a6a6@manitou-mail.org> <0023bea5-79c0-476e-96c8-dad599cc3ad8@gmail.com> <3275590.1712588904@sss.pgh.pa.us> From: Alexander Lakhin In-Reply-To: <3275590.1712588904@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 08.04.2024 18:08, Tom Lane wrote: > Alexander Lakhin writes: >> Now that ExecQueryUsingCursor() is gone, it's not clear, what does >> the following comment mean:? >>    * We must turn off gexec_flag to avoid infinite recursion.  Note that >>    * this allows ExecQueryUsingCursor to be applied to the individual query >>    * results. > Hmm, the point about recursion is still valid isn't it? I agree the > reference to ExecQueryUsingCursor is obsolete, but I think we need to > reconstruct what this comment is actually talking about. It's > certainly pretty obscure ... Sorry, I wasn't clear enough, I meant to remove only that reference, not the quoted comment altogether. Best regards, Alexander