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 1w7uyl-0001jV-37 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:47:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7uyi-00HYeZ-3C for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:47:25 +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 1w7uyi-00HYeR-2B for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:47:25 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7uyg-000000000x6-0f40 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:47:24 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4852a9c6309so57587105e9.0 for ; Wed, 01 Apr 2026 05:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775047641; x=1775652441; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=/z6Tzhrb3vsdbqxF22jmPCFFNI2Uh4wc0fyL6SAVxHE=; b=PnN731KsHbZF61fM/PNSkNv1cC8/ZF7RLwftglj20KwLAbjiFPUsR7M8VYI++EieXE X6mmOKJUXtZhujx0LioF+cQUOyRRCtHTZZEIw81sH4gSkDDASJnRYyepcJ0BZBlgo6c5 bErW4qid/H3HLPJe5AoUFgJo2VwIysM/P40rRmUtfh88PVoOOQeIQZjgjty/VE2LvYU5 03nCOExIh1nQhejuLBvsI464iV9NL1hRcQ+Vj8aAfwbLIZe6o5c0a95O2pSPQywvB/1S QSe92qaB6y6FKKIR8VXLPVpuJOI00VspsOASa5D0LlaoTP6sretl21gMfJ4y/YhTPPTB XBrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775047641; x=1775652441; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/z6Tzhrb3vsdbqxF22jmPCFFNI2Uh4wc0fyL6SAVxHE=; b=JsPw+Gvz4rnp5hiGQdRmYfW/6fIAJB6xPObC0miMI+vP4kvowtTcmt5NsRRVFFJ40/ FzxaIRm+wh17ZZApvThXkecScinXowVRinJazRoijYAqPX+rm/ZsrW4JrU7TaaN+TmqZ XKk9aiLCIsbncokuCR3jPcF3XG2S7SS4NmY8+4Vr8bJvG0qXeAhge40MutgU0ji+h3Yw 1GGq0tcuVUFCZwtunTxM67NFn44ZYv41Pzzws1qbO4+7nAlwMUwemX4+O7mcM0yJVwec Zi52JIQY3AHl1Alk+7f0HxqpXuzSyK7RY2lHO3fahpfm8Gm4Vk4R4eyZbXzTfzg4JHpQ RPuQ== X-Gm-Message-State: AOJu0YzSsN7VJVGb0t7Zg1f+SVcSJ8b/BfySEByyXnY0AaIPOSv8TsAU gL/pbtCUJv5Gu6v7zkvObP5cP2OQhGB2RHINWJ+cOaX5u3HrVs+aDKPe+4kpm29rbvU= X-Gm-Gg: ATEYQzxXCk0K98WhaYH0UXIfbHL5Wn/ik9xGEIAo8FjvE/aIWb45rQHZxrs0gqTOxFS 3dCohjWIIts/xjfOYEs11K2vgFOljiVFkWdNWSTUnzTdHVkw0L0i2ajFM2GgpTPwrIP5Ero3SFM uuttuzoKZDYS+ygalqLqI2AegC/4k+0Ky/QSbdes10ZuGriOgBhESfY2EKi9GH1WkO2dsSM3A6+ ETCyK5lV1K0hKFdEtwVyQ4Y22SAXXC2N/tN8VSSHWifBCqoxJAChn0i4kyQru8Lr4XJI/HSV04w WNvLYHsCL1IHYsDb0iSxRDZfAEAZeE1LdeQy3q4Gxr0BvKECbZX+puEBxWHDV0Fl360fpQEDOA2 ZjhCn743oF+Y3UyBWV6Hiah2rVaqDSQ+xGcPzZB1qK3ZRWD7Fsc70UGWrnDtJwkA3VuuyEY4gF/ DKKaODyVz2dQLwyLYa3JvVh5CYaohdhpqnGHwK78xO8TeZ101kcbEVFS7W6R3gdw== X-Received: by 2002:a05:600c:8488:b0:486:f4d2:eac6 with SMTP id 5b1f17b1804b1-488835682c8mr61431145e9.13.1775047641229; Wed, 01 Apr 2026 05:47:21 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:220:c2c5:4965:8d19:3f95]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43cf245e4f5sm38565765f8f.19.2026.04.01.05.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2026 05:47:20 -0700 (PDT) Message-ID: <97d218e241183a7a9dd634cc30f2ec17d1191878.camel@cybertec.at> Subject: Re: Online PostgreSQL version() updates From: Laurenz Albe To: Andrey Borodin , Matthias van de Meent Cc: PostgreSQL Hackers Date: Wed, 01 Apr 2026 14:47:19 +0200 In-Reply-To: <9A9D654D-A666-4943-B1FC-1E086AAC68C0@yandex-team.ru> References: <9A9D654D-A666-4943-B1FC-1E086AAC68C0@yandex-team.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2026-04-01 at 17:01 +0500, Andrey Borodin wrote: >=20 > > 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') >=20 > While I find this proposal very useful, I think the interface can be impr= oved. >=20 > 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~10= 000'). > 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 c= ause. I don't think that has to go into the first release; perhaps such functiona= lity can be added later. But the patch, as it is, is missing something important: the "internal" par= ameters "server_version" and "server_version_num" need to reflect the changed versi= on. Yours, Laurenz Albe