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.96) (envelope-from ) id 1w3I8k-0015Gm-28 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 18:30:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3I7i-001qLK-3D for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 18:29:35 +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.96) (envelope-from ) id 1w3I7i-001qLA-25 for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 18:29:35 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3I7g-0000000037g-18Q3 for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 18:29:34 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-b9813eed77eso165946666b.2 for ; Thu, 19 Mar 2026 11:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773944967; cv=none; d=google.com; s=arc-20240605; b=DhlB4ggcSS8haXjXk+YGdPNpa5w4nf4BBTYdYmXdj40msW545IjN0/DxeSsyRIRJ0B mABHTo3bXfjk6gAEw1HM9V895hsxheRpVNsMS28/q85KN/Z9uQ6NysIHAupxUxYrO2g2 q8I5LLjbuKBDMDEkPOCPDkM9AUB6A2SI5yVmqPcdspkR+ZQtFt3s4z+16iIXCnrwgYsA Pj2WYwSeY2KBcF0h/sT01d6T8jANn2hl6P7nTt7/lJPUO0dSHqTaETHFWVTEk8Qqy4fp fEGWiqeSl4nc//7ZoQZFZqRJwC1HuVL1eL5al33r+FfluFTXhIGY8xYUlPFspmwRgnYv DULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Rbp1Y3FZ0n+dBcJgNRfbiE8AJwnKFE/sjpyu5rJrwLc=; fh=vmkx8SKDdth5ZOzSdK1j5Xj+EMWosfLlVGvDtAvQRcQ=; b=eLNiOnKWlxChsfZCgxYhoap5XMR66JHjnulr+yuNp6XyCVgbRzI8c7YSFBnXvaJ31l EQRLef0qlG+d8ORrnB7A69poJEDlDjJzIfG2IJ7RjzVDAhD9nRBBihj1wRHnWjJFg8Wx DGoxd0ul2XoPvi5POUKPji2lqiAH+yuHXcteQrzngvEYcCX9FYoFcRWNSLKgjPxoN6Z1 ojzI1vrUXKlD/eWLG/IMvDwGLpZiyJ21OxPDgYjcxj0MH00Y6DPAzq2PCteLZTthKWgy t84qL1RjHrn7cV9U1G0GuZS8ZayeUWiDDu7VI1uVkQlbv3mnNkGEnCsHt6/oxOxDGmDi yDFA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773944967; x=1774549767; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Rbp1Y3FZ0n+dBcJgNRfbiE8AJwnKFE/sjpyu5rJrwLc=; b=cMjBXn7zM5rNCuCYyClTjNXi0fE2H5vb6tV95vRZHDFbHq5zHnBwjdSqn1pC8BslcL lR5L49NHwAph1ymckpLDL0uGFhwX3497yhJ0lENWmMMMqZ4jl/0mt0h6asOeGx4o4zI6 FQ+vX4sKz6M8TXjh/ZnCbBxJtFdSojMV9QDki7I/OmZpwmPpZvG8X4NGxk7zoW0HgZF2 uO/U5/A4h6In6KuBSJaxSFNOw06xAnrvpC/E9sMdNa7io0ZqyFnZMdiAMWXE6+ycoTpL IgTgn0FiulD/UB1pjIGhBNC0Pkd6zRBe7tVXaw2cYRZmi4CTWJpwbzHqifbhkhBA6jfH /Q0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773944967; x=1774549767; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Rbp1Y3FZ0n+dBcJgNRfbiE8AJwnKFE/sjpyu5rJrwLc=; b=fkLze5+ZbENqDNlBLBWgaZ3jdUK58QOdfiixTqIFzDREkWTVIBgF9jquqVFkz9LPWB 8DI+uUHff/635Q0la2ccesPYGfXYppuIRLHF13rg2xk/iHITDXMseN8JFe6BHjX+AfM4 IPEnEVQtzPax4n80iDpjui5P841Ln2VNeW15NBCpKcwIoECnof42qdTdVtIQKTr2vflz lBhkt5NQzeTJNbIRO8fJSPh/75DZYOkXmKsvqc36CoD0RvAzN1hGeQ4RelxE/NatLp94 C5Bp1mbBaDA8QPWtkjAt+l5Z1epms8aUU4hgJM2AO/d853Dm+TUczTHAjV0SV8eYYvpi usuw== X-Gm-Message-State: AOJu0YzBKoX7P5Jg/LuVH/+KwOMHMZZYNesAnRZSrwa1uh29qCnLHOvb k4nGk0PQKR0iaPZgjkIHtgHlyVsBeuP+djGcXprlDawaPadZ3jWsIgvEvGiIbB+I+lcP0KFWj7m AzrLK+t/jjjimCelIvOH7VYeX8+KpUR+M5PAk+Qo= X-Gm-Gg: ATEYQzxZCay5YVcmmIHd2EYnBgmbqgJDI8tksa8yVb1BKLHuBwP3RPhofCZ0lmgoyQ6 fdhENCH++42MPgd0ktlKAKihbZ5poPDByO+4UgGlUwZZVEqSkp4xFmbCVYUfvyzJO1wtKP9G2YP LDn7/l/HyhZBUTj5UowFTNIGzu6NonEVLTkfRJyBskUkuTKpFt85kqqixJlS5UNzVu5oCSxdcJG To2MmH86DUfLs1goQH1/iP9v+16/MsC0ZsK2mNScLbV39rSKUGxGIN/20vH2ceLNd3dKIKwxq6r JpXm636Qj3URYOzUE07oye0kTJ3fN9RbTo1gGOWs X-Received: by 2002:a17:906:1d42:b0:b97:76dc:ec6 with SMTP id a640c23a62f3a-b982f3c91f3mr23023766b.42.1773944966480; Thu, 19 Mar 2026 11:29:26 -0700 (PDT) MIME-Version: 1.0 References: <62bbe34d-2315-4b42-b768-56d901aa83e1@gmail.com> <1302471.1773940095@sss.pgh.pa.us> <1305470.1773941734@sss.pgh.pa.us> <1379704.1773944788@sss.pgh.pa.us> In-Reply-To: <1379704.1773944788@sss.pgh.pa.us> From: Jianghua Yang Date: Thu, 19 Mar 2026 11:28:49 -0700 X-Gm-Features: AaiRm51_aN1FdOxxFwPjAL4Gs8FmwET1V04-_WZU6edGKi-CostoSaO3gaP5nMQ Message-ID: Subject: Re: [PATCH] Fix fd leak in pg_dump compression backends when dup()+fdopen() fails To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000009404ca064d64bf49" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009404ca064d64bf49 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for pushing and for the extra scan. Regards, Jianghua Yang Tom Lane =E4=BA=8E2026=E5=B9=B43=E6=9C=8819=E6=97=A5=E5= =91=A8=E5=9B=9B 11:26=E5=86=99=E9=81=93=EF=BC=9A > I wrote: > > Fair point. Still, this is such an unlikely edge-case that > > I don't think it's worth a back-patch. Let's just do HEAD. > > Pushed. I also looked around for other instances of the same > pattern, and couldn't find any. > > regards, tom lane > --0000000000009404ca064d64bf49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for pushing and for the extra scan.

=C2=A0 R= egards,
=C2=A0 Jianghua Yang

Tom Lane <tgl@sss.pgh.pa.us> =E4=BA=8E2026=E5=B9= =B43=E6=9C=8819=E6=97=A5=E5=91=A8=E5=9B=9B 11:26=E5=86=99=E9=81=93=EF=BC=9A=
I wrote:
> Fair point.=C2=A0 Still, this is such an unlikely edge-case that
> I don't think it's worth a back-patch.=C2=A0 Let's just do= HEAD.

Pushed.=C2=A0 I also looked around for other instances of the same
pattern, and couldn't find any.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane
--0000000000009404ca064d64bf49--