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 1vE8Pn-0060e2-DJ for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Oct 2025 15:48:46 +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 1vE8Pl-001zII-Ip for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Oct 2025 15:48:44 +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 1vE8Pl-001zIA-9x for pgsql-bugs@lists.postgresql.org; Wed, 29 Oct 2025 15:48:44 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vE8Pi-004PND-2H for pgsql-bugs@lists.postgresql.org; Wed, 29 Oct 2025 15:48:43 +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 59TFmcmv2752565; Wed, 29 Oct 2025 11:48:38 -0400 From: Tom Lane To: Peter Eisentraut cc: Daniel Gustafsson , Nathan Bossart , Andres Freund , =?UTF-8?Q?Matthias_H=C3=B6rmann?= , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore In-reply-to: References: <19042-347869ae37c993f4@postgresql.org> <144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se> <804476.1756911473@sss.pgh.pa.us> <53lkszuko3qwk4sn6mxz5dl6yahkosrksm3pcxjikcuxj3vssq@jwzipa3ikold> <513f6b2f-e6be-423d-aad6-4ab58988278b@eisentraut.org> Comments: In-reply-to Peter Eisentraut message dated "Wed, 29 Oct 2025 16:24:46 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2752563.1761752918.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Oct 2025 11:48:38 -0400 Message-ID: <2752564.1761752918@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 25.10.25 00:26, Daniel Gustafsson wrote: >> While hacking on this it seemed like a good idea to move to using progn= ame >> consistently, and reduce scope in some places from global variables, bu= t >> looking at it now I'm less convinced. At the very least it should be r= ipped >> out into its own patch but for now those changes are left in there. > The --version outputs intentionally do not use progname, so that you get= = > a proper identification of the program and version independent of what = > the binary might be called. Please don't change that. Hmm, that's important institutional knowledge that should be captured somewhere. regards, tom lane