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 1pwcPc-0000Ji-0t for pgsql-bugs@arkaria.postgresql.org; Wed, 10 May 2023 05:30:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pwcPa-0004xD-1H for pgsql-bugs@arkaria.postgresql.org; Wed, 10 May 2023 05:30:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pwcPZ-0004vU-PP for pgsql-bugs@lists.postgresql.org; Wed, 10 May 2023 05:30:49 +0000 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pwcPW-001i6K-GE for pgsql-bugs@lists.postgresql.org; Wed, 10 May 2023 05:30:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 55F8E2B06960; Wed, 10 May 2023 01:30:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 10 May 2023 01:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id: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=fm3; t=1683696643; x= 1683703843; bh=ng3BkpEmdL7KCDXMEzabb6XvXkXDyHtcDNshriomRNs=; b=W aMvxNqvS1AzJKpaao3jAyfCU9pc3J+Ba80gsNNVJM6xvUdu7ihSEK2PPCNmkbs6G Plpnp0i3GGbISgqR9BW6MRm4/BI6fVWB+rfgrMU5PvHCW5ixRny0DW6e8BHMVGaB GJtLh+VmHQWAsTBKUY3bSm4JRjb/VcRhBb835uN4wpJk0EdUPt88F2pPRUJyr5BZ 9gxaOOob30jFO+NAYDgM00JyGmxiYWF44NGp54G5IwLxU6d+zrdjm9gHolVvZCEi 9u6UZSWHTspgafU7rF93Ucub9itTDR1V1yKEh1+6cjLGBarbfmNViOGEeTvAcuKl CYBzvyKwUqfCKljF0akiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegvddgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 May 2023 01:30:42 -0400 (EDT) Message-ID: <6c53254e-3e03-aa73-6007-bc67397fd507@enterprisedb.com> Date: Wed, 10 May 2023 07:30:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: BUG #17923: Excessive warnings of collation version mismatch in logs Content-Language: en-US To: buschmann@nidsa.net, pgsql-bugs@lists.postgresql.org References: <17923-c791d260d83aa587@postgresql.org> From: Peter Eisentraut In-Reply-To: <17923-c791d260d83aa587@postgresql.org> 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 07.05.23 12:13, PG Bug reporting form wrote: > 1. Why isn't it sufficient to report this message only at server startup ? > The messages are sent to psql too, but only when logging into one of these > mostly unused databases, so it is not observed in a regular routine. Each database is separate. The server doesn't look at each database on startup. This is only done when you connect to a given database. > 2. Why is this message reported for databases with no objects or similar > cases? When you connect to a database, the server doesn't scan all objects in the database to see if they might be affected. That would be too slow. If you have no objects in the database, you can just run the provided REFRESH command to make the warning go away. > 3. Is there a real collation change in glibc 2.37 or is it only a version > number mismatch with changes only in other parts of the library? We don't know, because glibc isn't reliable at telling us about it. So we take the safe course. > 4. Could the version information be shown in \l output of psql? That's a valid idea. > 5. Wouldn't it make sense to automatically update the collation version > number of such databases (without any collation-related objects) at server > startup? See #2. We are not going to start scanning each database on each connection to check whether it might be empty.