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 1s4rDm-001Tuv-0S for pgsql-hackers@arkaria.postgresql.org; Thu, 09 May 2024 00:01:14 +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 1s4rDk-003d2Z-Bt for pgsql-hackers@arkaria.postgresql.org; Thu, 09 May 2024 00:01:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s4rAb-003YhE-K2 for pgsql-hackers@lists.postgresql.org; Wed, 08 May 2024 23:57:59 +0000 Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s4rAU-0005j7-LW for pgsql-hackers@lists.postgresql.org; Wed, 08 May 2024 23:57:56 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id 50A461C0012C; Wed, 8 May 2024 19:57:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 08 May 2024 19:57:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1715212666; x=1715299066; bh=umWpwINeJy JFOE4bUmHf6ZSTWJdIVGqE3Rgmj1C1hOg=; b=M0Yl68kSg1JAj9x4rQZG1sW552 Gi31T2qI84ImeWJB1/7WD7PF7vmXYMAjiGAqcY09vTTuRso7R+tTbgUordDtbuDn fmLgoeaec3/XGnFG366XBSRxNy8d97gHEarMgXvFy4MTmSUKSjyoDpD7OLENx4mI ebDYeyM/pzvhF0yK+nKDjDyWDRL7mC3mNhQ6OgxsQK1kSPCAeXz3P/i8LG7qK2Gd A/NJnWIDB9dCaDI2xd7cijCayKPfo7L6bg+9KL3OcrNHygfvL0on3FEsFCZFYjpc pklfvWPZ0AOSiu8oKUxhWZSoA91sGmv+po7Dl9k0WrLOYVJ7QrgxcPf/7zkg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715212666; x=1715299066; bh=umWpwINeJyJFOE4bUmHf6ZSTWJdI VGqE3Rgmj1C1hOg=; b=d+0XSJk4yAzz+BCUqA/BpCC0JJg55TvjNyVHP39X6hW9 0+xMPIauigZPYvD/UVmS5S4TB9+sD0Ljc1AMnwi8pZD1SEKddbXawt6tnC9l7Hvd 93pYy+qALngA41dYNrsLcSQflit9zVERHgutuiXTeIxwTmeTgb8bkA9gmbziBFhC Wok+ISiZvVS/8t0mmtxhC66WLnLLbDPM3VGcKrbGC5PIuejrl5GfuGiK5dIWJvYe bU8z7vt1naaVX/Q4Io52dZAr15Hbq9DoplacaaKZVrvSM7C/1CwfewxOaq7qZhxI nXlsJZIScz6beGMVx28TRvLbimQ8FUu869x+1RlNtA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefuddgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 May 2024 19:57:44 -0400 (EDT) Date: Thu, 9 May 2024 08:57:32 +0900 From: Michael Paquier To: Robert Haas Cc: Justin Pryzby , Matthias van de Meent , Tomas Vondra , Josef =?utf-8?B?xaBpbcOhbmVr?= , pgsql-hackers@lists.postgresql.org Subject: Re: bug: copy progress reporting of backends which run multiple COPYs Message-ID: References: <20230119054703.GB13860@telsasoft.com> <20230121012802.GL13860@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="95GpyWjMxFVoQVMD" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --95GpyWjMxFVoQVMD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 08, 2024 at 10:07:15AM -0400, Robert Haas wrote: > I think you're hoping for too much. The progress reporting > infrastructure is fundamentally designed around the idea that there > can only be one progress-reporting operation in progress at a time. > For COPY, that is, I believe, true, but for file_fdw, it's false. If > we want to do any kind of progress reporting from within plannable > queries, we need some totally different and much more complex > infrastructure that can report progress for, probably, each plan node > individually. I think it's likely a mistake to try to shoehorn cases > like this into the infrastructure > that we have today. It will just encourage people to try to use the > current infrastructure in ways that are less and less like what it was > actually designed to do; whereas what we should be doing if we want > this kind of functionality, at least IMHO, is building infrastructure > that's actually fit for purpose. Hmm. OK. I have been looking around for cases out there where BeginCopyFrom() could be called with a pstate where the reporting could matter, and could not find anything worth worrying about. It still makes me a bit uneasy to not have a separate argument in the function to control that. Now, if you, Justin and Matthias agree with this approach, I won't stand in the way either. -- Michael --95GpyWjMxFVoQVMD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmY8EWwACgkQnvQgOdby QH2EIhAAmp3NTiQgNwa+gnZNuNyUI+OyfUyrEsEbXjM4eT239RbfmKbyeZq5wOd5 VJ9/SFKU/6w+M9+vGjFpQ9xtIWZcgfFgsurQ+YmIIRLuUUiiSrzaeWUBfECwnIyL OTXw+wgyf+MJiQ2yRGK2nAfjHSv+vqfsGSNKFyGMNQDW8tyFjDwPJmaoQoT2eS03 Z7vKsI8IDRRxfG4nfUnzR7uKXznBCwfQfpwEwLWPok5J5IHKxAMRSGv9hy9il01c 6F+GLqBgjVJ6wMhUPno7B/eXTY2/seUUtF9XE4rvtxnTlc74OTrP1gAEhjGZILx6 Y0mkQeOBfQWkU4RT/HD+CUSSBf23D1MllUcdPMWA9G/0i0VSTB88TL1hl6WOIOvF eLLpPqzMbYc03idWRBQ6VsmpnNqpYVDQ6vzfbwl9K43D9dTOh895La0xpKHbuUbS 6r0lY5C3EtPvIIvvtgtDEpFm0Kwl77sRi4I2Hcz1E0cMw4ZQPTttFd9Av1Bb+ePX J+4a8dNNQFKJJ2iWGsMWFDGpSBR/zOcuDU3NnWPJX2NXB9uwYi2VoIvnuGKs9ILH zzqZImWptk+laocrrE5NKUsi1fs+Yq1kxqyulTG3zkF/+Vnjf6YwRXnfLRcJPCJ/ 4jJaXb/k6q2NKy8vNoXoxVOEGdlymt3oPUnoKQEL9afaX+zeBP8= =vvVh -----END PGP SIGNATURE----- --95GpyWjMxFVoQVMD--