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 1w7wiE-0003lP-0r for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 14:38:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7wiB-000Vo8-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 14:38:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7wiB-000Vo0-0S for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 14:38:27 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7wi8-000000001oI-2Xf1 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 14:38:27 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 1E0465A528A for ; Wed, 01 Apr 2026 16:38:23 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 053925A531A; Wed, 01 Apr 2026 16:38:23 +0200 (CEST) Received: from localhost (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id 022A67CEA97; Wed, 01 Apr 2026 16:38:23 +0200 (CEST) X-Virus-Scanned: amavis at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s898.loopia.se (amavis); dkim=pass (2048-bit key) header.d=proxel.se Received: from s980.loopia.se ([172.22.191.5]) by localhost (s898.loopia.se [172.22.190.17]) (amavis, port 10024) with UTF8LMTP id hcRrcQe7mTFl; Wed, 1 Apr 2026 16:38:22 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: andreas@proxel.se X-Loopia-Originating-IP: 147.28.75.140 Received: from [192.168.0.121] (customer-147-28-75-140.stosn.net [147.28.75.140]) (Authenticated sender: andreas@proxel.se) by s980.loopia.se (Postfix) with ESMTPSA id 5C39922016CC; Wed, 01 Apr 2026 16:38:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxel.se; s=loopiadkim1707418970; t=1775054302; bh=vTOVcIONbXQTiM3QHDRim7X1z0pN3E5POKVKEuq9ZKU=; h=Date:Subject:From:To:References:In-Reply-To; b=riHLLyyBPccFLpCA5dSnupZ85rZX4ZBI5N7tg2AC8pWjPVQfsR6Nhw93OS+ltX34c bhS65f1t8YAg7BnWKowr3LxrBnm8hFovZ64sNyjM3zN7nGesQ2WMc4bQcY8qhBzuQI hI4PXodfRDSncCQax4tYz7c4ZdP8DJkoBgsfa5JuHCzeWE5D8eBNt1sEBIWgy7l0nm uqJpOUs1QcT01Mhk/ymMgFrXtWpvgrGRb+PxfuQlxWdCgUkADoWM0RPaxBe6/4gD8k NflAvu9KUdoP136dP9ubKhBs1mOv/7aAV81ySHg2vU2GUqmHEyLt5CvkuAHulgMdAJ 3QiJsSD27dxoA== Message-ID: <408d8baf-b87a-4248-8e47-864d2b8f3511@proxel.se> Date: Wed, 1 Apr 2026 16:38:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Online PostgreSQL version() updates From: Andreas Karlsson To: Matthias van de Meent , PostgreSQL Hackers References: <3922da25-1dbc-4780-92c3-c2460aecbed5@proxel.se> Content-Language: en-US In-Reply-To: <3922da25-1dbc-4780-92c3-c2460aecbed5@proxel.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/1/26 1:35 PM, Andreas Karlsson wrote: > On 4/1/26 12:48 PM, Matthias van de Meent wrote: >> Attached is a patch that allows superusers to update the version() of >> their running system with a simple SQL call: SELECT >> pg_update_version(version_num, 'version_short', 'the full version() >> outout'). Running backends will automatically get updated without >> impacting their active workloads, and new backends will immediately >> notice the new version(). > > Thanks for the patch! > > Some small quibbles: Another thing: What should the return value be? Right now pgsql_update_version() returns the new value for version_short, but that feels not that useful and pretty arbitrary. Maybe we should simply have it return void? -- Andreas Karlsson Percona