Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njj9p-0000GO-0j for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Apr 2022 15:00:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njj9n-0006Jc-Hz for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Apr 2022 15:00:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njj9n-0006JS-9n for pgsql-bugs@lists.postgresql.org; Wed, 27 Apr 2022 15:00:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njj9k-0003du-Se for pgsql-bugs@lists.postgresql.org; Wed, 27 Apr 2022 15:00:42 +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 23RF0Vg4384652; Wed, 27 Apr 2022 11:00:31 -0400 From: Tom Lane To: Jet Zhang cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: psql emit WARNING if built with option --with-extra-version and the option only contains numbers In-reply-to: References: Comments: In-reply-to Jet Zhang message dated "Wed, 27 Apr 2022 14:52:42 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <384650.1651071631.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Apr 2022 11:00:31 -0400 Message-ID: <384651.1651071631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jet Zhang writes: > As the doc mentioned, the --with-extra-version can be a distribution pac= kage release number. But if I build the program like below configure: > ./configure --prefix=3D/home/zhangchenxi/Workspace/c/.build/psql --enabl= e-debug --enable-depend --enable-cassert --with-extra-version=3D.54321 CFL= AGS=3D-O0 Don't do that. As you found out, you'll confuse client programs that think that three-part version numbers are old-style PG versions. Use some other format for the extra version, perhaps with a dash or underscore first. regards, tom lane