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 1luM2w-0005SM-96 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 21:29:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luM2v-00041v-46 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 21:29:01 +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 1luM2u-00041i-SU for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 21:29:00 +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 1luM2s-0001PE-Un for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 21:28:59 +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 15ILSdoh1320811; Fri, 18 Jun 2021 17:28:39 -0400 From: Tom Lane To: Fabien COELHO cc: PostgreSQL Developers , Thomas Munro Subject: Re: Version reporting in pgbench In-reply-to: References: <1226654.1624036821@sss.pgh.pa.us> <1234107.1624041603@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Fri, 18 Jun 2021 23:18:45 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1320809.1624051719.1@sss.pgh.pa.us> Date: Fri, 18 Jun 2021 17:28:39 -0400 Message-ID: <1320810.1624051719@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fabien COELHO writes: > Note that if no connections are available, then you do not get the > version, which may be a little bit strange. Attached v3 prints out the > local version in that case. Not sure whether it is worth the effort. I'm inclined to think that the purpose of that output is mostly to report the server version, so not printing it if we fail to connect isn't very surprising. Certainly that's how psql has acted for decades. regards, tom lane