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 1vohzX-00Ch0f-3C for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Feb 2026 13:04:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vohzW-006k1k-35 for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Feb 2026 13:04:50 +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.96) (envelope-from ) id 1vohzW-006k1U-1U for pgsql-hackers@lists.postgresql.org; Sat, 07 Feb 2026 13:04:50 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vohzU-00000000zXH-0G4X for pgsql-hackers@lists.postgresql.org; Sat, 07 Feb 2026 13:04:49 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b883787268fso241760066b.3 for ; Sat, 07 Feb 2026 05:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770469485; cv=none; d=google.com; s=arc-20240605; b=iQQUO8wld1szDrIYZeV0cjRlysGvgzRqEGQvzKDrhlOvy8k/SiA5lMMWI6tcas/DKd A2mRQSIPXqyyoaixjfpz1u3wb0LBUJlpo2ZlQQ0JZ/wPdQyoHY1P8copw48eQEl9WGqC uclttVJm8fQ+Cc2j+OCSQOCyZMG1F1GdUbR8QG0GcYGgZk8K/oRxAKH6JzVrO3PJY3R0 wMY4dUtHxtl56zJaGlU4bC47AIFhxDoi19ulvaQn5XAJNsuKP3T9SXJpkLEdcMmx95o9 rtJ0d2O0pFH1C2JMYSYYwGhAMiI+M3hEB9/YgItzCuMSHHqguXpCRnzw7Kx3BxHo16qP JfdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eaULGEYErxJQJXy+U9GMml7bzhdHQ1YOUcvQlQv46sk=; fh=BL5zG/PJSEKmclsyczutz66ix6MY2CaGHl587xkMa/o=; b=UPFZ9gzLsXeOksiKzAIkcJXwgvmuPWSDeisyGlALW/LJXo12zyX5I6PHPNw4TFDfLR V4CXyYCPZoM0BYP79wQZW88AlJ0l3pOL1XQHH9ROaLef9TeOl2+IlEuFaNtA6lVGzwzq yKSHiNV2rc7lxkDIslCRIJn/9xYVg+05Vcm+jQnsJ3DcRzaToNGgxlS+jY5ha7MjmdLF 1u9ZorOXBfKBH053d3KNg7VrjxXGXQvKIcTR8eUiHU0moTUMwXLOEvFOgSx+UXWUx6fg uM+qh6wI9oWWEJT4SZhPsLUJkXDCwfYe0ot2JK5R7q7IpNpTaVfnPfHq0uZ3xiumIcFr P0Zg==; 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=1770469485; x=1771074285; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eaULGEYErxJQJXy+U9GMml7bzhdHQ1YOUcvQlQv46sk=; b=M2nvvVG2QEgsjon27HMmIvaoFGycTVUqNlAbQdejCvSq1ddQdCSfx7znctmD0qSRBx p2TZgzVUn9mg3fY02YDkDUHodeNu5/8PMJt8r44YzcFzBOFfXvVndxgqylvkh8+FGp4B tWnwcE+NgmtZe0TNUSmk9vqM35/SG5Gd/z67WvE94WXzXGfC4gRZn0ZoaVGXTFnox1um oW6CfME8sCxKXeF5akFXH58DrCmD58Av9m4A3uB78QvvR9AbmXXsHXQns6epOWHehcTM zhN3AmR6bGKNN0uj0J+cWWHAkscWJt+2jMY4J+EfQ5NN9PH08CZUU7XHBhXof4xxb1ym EIkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770469485; x=1771074285; h=content-transfer-encoding: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=eaULGEYErxJQJXy+U9GMml7bzhdHQ1YOUcvQlQv46sk=; b=s6CN0WMCocz49djETKVPXtCuoauwYhQHqBV7Ds+Wqr9de1wobPV6IoWZSC783gCDFX 00+Yz7vXMmKi+M1cq1g2DGSNC+I2tbzJxJA4WYXsJ+hnVQtcsLgfXYJ4W60PQDqOvPm1 rqc3bc73NgRdNwZJWU/n9RdHBEkDUbvWBNDzSfdOi3kV6adJ/rAWM3ZYyKvBixqOX7cF CFfo3PCPpP8gXPL2kQMM+DE5mTDdQFfwI1Zi4KLWB5IcyYcA5J84fjZ4Dt99SbT2wNNU pqcqLdyNb6FbVNeSV188rbO2use5g5TkLVI+nV48Fr4CegCUKCTr2gk52v4kIYxUW67k HLJA== X-Forwarded-Encrypted: i=1; AJvYcCVypxKHQqqxHW34cZ2JvNP7n0o3ya6ZR1vQfn2/u4eUuYmtd9BAUwS9ecf5KGXwoXqwlRN80lztIqlxeIc+@lists.postgresql.org X-Gm-Message-State: AOJu0YyFNqA0CUpmV9rszrbB/LTwdj50wWcgXqk+vHVXM8uLXTBnHBjb An2yNmO5LrgBuTmGD/29TCzzhPhhhL5seV09Y/nFMD6Vym/TPjvY1HycLSYCvIpJ7KfEzklP8/X 7qtnEERCAVil1M+5gsvxdJj4uwy5vu0o= X-Gm-Gg: AZuq6aKbUR0nOkFUdIG2AARetpN6BhnmapCj6xGSRLzYNpnHMEa8wFkMvEkkRRt/ZlS NL7jQPzFp2i3wjx/pAv43TBlb4b13cDtlxWyR3WzU7/JE6DqRc0QyebkUqRs5b7A+yVNbb6nCAt mmsplhnPZVnsX3oLRm9MbSdByEjdspGBRA1pIozkUYNUgbFGk5IJ7xK+M9HSZkmfk7K9D5TPh7M 9YWs0ui1KwcUXhvje4zXeHuBP8skhDQzxgrViwFTQ3qQDJRUwJbP+kdOoqVkaP9d3L5Nto/T1NH wK7oAyXQ+c/rUuHWusna1RMVD1k= X-Received: by 2002:a17:907:7f8a:b0:b8e:d162:2410 with SMTP id a640c23a62f3a-b8edf194f2dmr341082066b.17.1770469484867; Sat, 07 Feb 2026 05:04:44 -0800 (PST) MIME-Version: 1.0 References: <731ADE6F-01C5-4996-BAEE-5851DFC3F502@gmail.com> <3c8e7b02-2152-495a-a0b6-e37cf9286a70@app.fastmail.com> In-Reply-To: From: Robert Haas Date: Sat, 7 Feb 2026 08:04:32 -0500 X-Gm-Features: AZwV_QjUfKVAvpRhKarhTLGYKmMBOyMs3Ylitfu32dtjyBmWAudPMNrhUbCv9_I Message-ID: Subject: Re: pg_waldump: support decoding of WAL inside tarfile To: Amul Sul Cc: Euler Taveira , Chao Li , Jakub Wartak , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 4, 2026 at 8:53=E2=80=AFAM Amul Sul wrote: > > 0008. I'm concerned about this patch. It is breaking backward compatibi= lity if > > you are using a long option (--wal-directory). Your proposal is a gener= ic word > > that represents both cases (file and directory). I agree. However, I wo= uldn't > > remove --wal-directory from the tool. Instead, I would keep it with the= same > > short option ('w') but add a sentence saying this long option is deprec= ated and > > will be removed in the future or even remove any traces of this long op= tion > > from the help and documentation but silently accept the old long option= . I > > prefer the latter because it is not a required argument so a deprecatio= n > > warning is not necessary IMO. > > Yeah, that was discussed with Robert offline and we believe that it is > better to make it more generalized; since we can now use the same > option to accept both wal-directory and wal-archived. pg_waldump has > much more generic options for the same, such as -- path=3DPATH. Of course, the fact that we discussed it doesn't mean that the issue is completely settled. However, I don't think there would be general support from other people on the project for the idea of getting rid of the long option entirely, or even just the documentation for it. We have long options for almost all short options these days, and I agree with that as a general practice. Sometimes we have ONLY a long option, but we very rarely have ONLY a short option, which is good because sometimes we have tools with too many options for it to be viable to give everything a short option, and the long options really help to make things more self-documenting. What I would consider a more viable option is to not do the rename and leave this as --wal-directory even though the argument could really be a directory or a file. That would avoid the backward compatibility break that is troubling Euler. And, you could argue that a tar file is enough like a directory that it won't really cause much confusion. Personally, I favor renaming it. I think the number of people using pg_waldump is fairly small, and the number of those people who are using the long form of the option is very small. Hence, I don't believe think the rename will inconvenience many users, and I think it will improve clarity for future users. But, Euler (or someone else) might take the opposite viewpoint. --=20 Robert Haas EDB: http://www.enterprisedb.com