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 1w7uGv-0000xc-0S for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:02:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7uGt-00HMGn-2i for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:02:08 +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 1w7uGt-00HMGe-1L for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:02:07 +0000 Received: from forwardcorp1a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:df01]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7uGr-000000000YL-0LQt for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:02:07 +0000 Received: from mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:3a87:0:640:845c:0]) by forwardcorp1a.mail.yandex.net (Yandex) with ESMTPS id 09CF0C0164; Wed, 01 Apr 2026 15:02:03 +0300 (MSK) Received: from smtpclient.apple (unknown [2a02:6bf:8080:76f::1:33]) by mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id 12aGO30K3mI0-BnYTzLEx; Wed, 01 Apr 2026 15:02:02 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1775044922; bh=OdXeUtRPDVC3/Wb1fDj6W9eoBrdxm3rgPu0etW+Njl8=; h=Message-Id:To:Date:References:Cc:In-Reply-To:From:Subject; b=hcfXhr/Lt03QNNgDZNRHR7J9JmjhmDWqauE9myw1ZMa+yWYrexNs+40BJtETbkody +wzYpUXWpbul1DkvVmzB/xUqd9tqLoNYBubWSxdflkNvfjXBWo1JdnJxp8HdG2Prh9 WNEhoHbZ4Sa2zc+Y2283wAhX/+l3w+cx2UIiOZyg= Authentication-Results: mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Online PostgreSQL version() updates From: Andrey Borodin In-Reply-To: Date: Wed, 1 Apr 2026 17:01:51 +0500 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <9A9D654D-A666-4943-B1FC-1E086AAC68C0@yandex-team.ru> References: To: Matthias van de Meent X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 1 Apr 2026, at 15:48, Matthias van de Meent = wrote: >=20 > 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') While I find this proposal very useful, I think the interface can be = improved. Consider SELECT pg_update_version(commit_hash) so we can do stuff like SELECT pg_update_version('REL_18_2') or SELECT = pg_update_version('HEAD~10000'). In future we can even create a bisect facility, so when user encounters = a bug in their production they can iterate over several commits to trace = root cause. Best regards, Andrey Borodin.=