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 1t157v-00Edk3-Ci for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Oct 2024 14:35:51 +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 1t157s-004GfR-PW for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Oct 2024 14:35:49 +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 1t157s-004GfH-Ev for pgsql-hackers@lists.postgresql.org; Wed, 16 Oct 2024 14:35:48 +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.94.2) (envelope-from ) id 1t157p-001C3I-UQ for pgsql-hackers@postgresql.org; Wed, 16 Oct 2024 14:35:47 +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 49GEZecL072831; Wed, 16 Oct 2024 10:35:41 -0400 From: Tom Lane To: Joe Conway cc: Peter Eisentraut , Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-hackers@postgresql.org Subject: Re: System views for versions reporting In-reply-to: References: <588dcd4f-2c3e-4eb4-ad38-e2edc9adf2d3@eisentraut.org> Comments: In-reply-to Joe Conway message dated "Wed, 16 Oct 2024 09:31:58 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <72829.1729089340.1@sss.pgh.pa.us> Date: Wed, 16 Oct 2024 10:35:40 -0400 Message-ID: <72830.1729089340@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joe Conway writes: > On 10/16/24 08:47, Peter Eisentraut wrote: >> That way, you can get this information without having to start a server >> instance. (Maybe you can't start a server instance because it just >> crashed because of some library version issue ...) > While it is also useful to be able to get the info without being able to > start the server, I think that would be an addition not a replacement. > When you have a fleet with no direct access to run shell commands, being > able to get this info via SQL is valuable. Yeah. In addition, I envisioned that this might include information that's only readily available at runtime. Don't have a concrete example at hand (-ENOCAFFEINE) but I think that --version is necessarily going to be exceedingly constrained in what it can do. Another problem is that, just like with version(), there is already code making assumptions about what --version will output. Most of that is under our control, but perhaps not all. The main value of a new system view, IMV, is that it's a completely green field for us to define the contents of. regards, tom lane