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 1uRGlW-009NKI-0r for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jun 2025 20:49: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 1uRGlS-003VNw-F1 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jun 2025 20:49:11 +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 1uRGlS-003VNo-5D for pgsql-hackers@lists.postgresql.org; Mon, 16 Jun 2025 20:49:10 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uRGlP-002QTC-2k for pgsql-hackers@lists.postgresql.org; Mon, 16 Jun 2025 20:49:10 +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 55GKn08c666036; Mon, 16 Jun 2025 16:49:00 -0400 From: Tom Lane To: Tomas Vondra cc: Daniel Gustafsson , Evgeniy Gorbanev , pgsql-hackers@lists.postgresql.org Subject: Re: No error checking when reading from file using zstd in pg_dump In-reply-to: References: <6b9817a8-88ec-4efd-b441-9e2a0439c6b8@basealt.ru> <95255a86-4bc7-4ff4-aa26-4441aafdf0fb@basealt.ru> <522DB522-3962-4F91-A691-2DE790F6CCD6@yesql.se> <517794.1750082166@sss.pgh.pa.us> <3815B6CD-924B-40FA-823A-55E2F8F24602@yesql.se> <520142.1750083607@sss.pgh.pa.us> <644360.1750096605@sss.pgh.pa.us> Comments: In-reply-to Tomas Vondra message dated "Mon, 16 Jun 2025 22:23:46 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <666034.1750106940.1@sss.pgh.pa.us> Date: Mon, 16 Jun 2025 16:49:00 -0400 Message-ID: <666035.1750106940@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > For a moment I was worried about breaking ABI when fixing this in the > backbranches, but I guess that's not an issue for tools like pg_dump. Yeah, I think it'd be okay to change compress_io.h APIs in the back branches; it's hard to see how anything outside pg_dump+pg_restore would be depending on that. regards, tom lane