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 1nJWZZ-0000RV-NI for pgsql-committers@arkaria.postgresql.org; Mon, 14 Feb 2022 08:19:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nJWZY-00014t-GK for pgsql-committers@arkaria.postgresql.org; Mon, 14 Feb 2022 08:19:00 +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 1nJWZY-00014k-2h for pgsql-committers@lists.postgresql.org; Mon, 14 Feb 2022 08:19:00 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJWZV-0002w8-Hs for pgsql-committers@lists.postgresql.org; Mon, 14 Feb 2022 08:18:58 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EF52F5C0116; Mon, 14 Feb 2022 03:18:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 14 Feb 2022 03:18:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=n0qp2947727iGum/SYyaq0K5lSubpEcfIdz2nS yQtkE=; b=jNklNXxea9vljVn+THCUz/Yg7IY0B1Pn2ayw8SgosAU25Ky/AR2PDP Av829HJCQOIidOSaim3wm/y2p1q+3oo7xIalHVtHIHQmL2BBiefnJWwrTbpSH2pD PEOp2cPcTS65hQKLkB9t4xGIvafjCmBcK3b8mpFF8WHXzW82c5pOZ3SvsS8t4G80 eb1lTthY7aF+ssSSRu5a3J4Ago53+sp2eMV0kFrEhz89Ma8kj/G66JRG8Uj5xYeG UX2pnMeLDzJCuFUNIlq0hcnngOTIx8TBezScAlqln1UwNkkLaHe2ui4yNLYLRR2J TY0BRkGq9TtgtNt9P/2r8XRvy+lhEVaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=n0qp2947727iGum/S Yyaq0K5lSubpEcfIdz2nSyQtkE=; b=fXE9YjhBL71c8rIN5qFnd5W30BS70veXX RszTD5Mn6tRAjXXPY9MzfIjVkq7NSELw2dQLadZv/gVBkNRKcLsiI79uC8CFzqN/ eGCNXdDUv/vvTlkDEkGVexfsS96tU2MKPtueRv+uIm0uk68bCOmj5GiLv/bL3sbI WZ/lHKHRxYdTvK94L2XXmaoaJgkXDag1jFZ5iz8uZ29XC5lY0QFRUAzOOiTpC7WD 52p6C2xHfTYLpjg5Z9WfvH28eSwWwHN83ti1ZGJOyuQfyeTBq+HV2s4suWARMJZv 3KzZky3wRJMoTlo08cKMdSbN//0OY+2Hk0vZhGpq+BWE0C9Q6B/+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjedugdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudeffeelgffhkedukeekvedv udfgieetkeekudelfeevhffhffdtudffieeutdenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Feb 2022 03:18:55 -0500 (EST) Date: Mon, 14 Feb 2022 17:18:52 +0900 From: Michael Paquier To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Database-level collation version tracking Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rfZl6IFqOhWwdEL9" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --rfZl6IFqOhWwdEL9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 14, 2022 at 07:40:22AM +0000, Peter Eisentraut wrote: > Database-level collation version tracking >=20 > This adds to database objects the same version tracking that collation > objects have. There is a new pg_database column datcollversion that > stores the version, a new function > pg_database_collation_actual_version() to get the version from the > operating system, and a new subcommand ALTER DATABASE ... REFRESH > COLLATION VERSION. >=20 > This was not originally added together with pg_collation.collversion, > since originally version tracking was only supported for ICU, and ICU > on a database-level is not currently supported. But we now have > version tracking for glibc (since PG13), FreeBSD (since PG14), and > Windows (since PG13), so this is useful to have now. calliphoridae does not like this one: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dcalliphoridae&dt= =3D2022-02-14%2007%3A41%3A13 SELECT current_database() AS datname \\gset ALTER DATABASE :"datname" REFRESH COLLATION VERSION; -NOTICE: version has not changed +ERROR: unrecognized node type: 291 Worth noting that it uses -DDCOPY_PARSE_PLAN_TREES and -DRAW_EXPRESSION_COVERAGE_TEST, so you may have missed a piece in this area. -- Michael --rfZl6IFqOhWwdEL9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmIKEGwACgkQnvQgOdby QH3SEA//UipHWocQh/xozvhsSg/ZcGscbtOPkdgNopMhYC2TzJEDcSloQhpqOHok 9Zp/twQmsDuswSaJhfJnXocAcjNy4w1DuXrMVLVzVZvi91ADovkkfs+nOBDSWnZJ epQZoBoRWzDVtvBnD2fzUpFyPrgl3F01kbKd3zV0e9GWwdu/SN2sbbrNIzJdjnNM hwwvU19462xKSdyc9ZgKbjLSQBW9OmDdsXsd2jwo4kFeK9PEz+0j4vsA0uTOjaT3 aDvMDksLq8l4UXGi+qI+gXuSh1X2mpEkyN8zNj3BaH6RxnN1IlvlWRYnzMRD9v+N PFpWcMJGL8O275i6UEmrd95WP6VEZ0m1B2dkrODsXbOkvYjKMFJu4Qfbf5t3q7Ci 30jJ3HSt0XWKtQdeuxcmBVVb0kvAnim9Bykz+kWCtjP4hVWpfnqyE4x1BoZS8OHZ xzsqwT4fpXPlTRAuKSLIin1QsVTJaKUTsNlSldLj4bkZ4X3h36pAFrwuHqqBCTXh DM7SyEFZU7qfUij6HnA6986age90pjLUEgqEaWoAvsIDS+y6HJSvoYz6QqSzLP5T MfsX1guYFziVxKn8WBQubjwsmke3EN6c6gBYEiXo1ntF9Ax/6taQAYYVH00jSRqc ksB0jMnmMXNPV8W0H0Qhwsl3y6lGdjeqoba5riJjoDf8n1jOXB0= =82o6 -----END PGP SIGNATURE----- --rfZl6IFqOhWwdEL9--