Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEOOq-0002Px-25 for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2020 02:25:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEOOo-0002zP-Lz for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2020 02:25:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEOOo-0002yB-Bi for pgsql-general@lists.postgresql.org; Wed, 18 Mar 2020 02:25:38 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEOOh-0004Wf-P7 for pgsql-general@postgresql.org; Wed, 18 Mar 2020 02:25:37 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AF2695C0210; Tue, 17 Mar 2020 22:25:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 17 Mar 2020 22:25:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=lJJhgf2RwKjrOe1+5XAX0iV+c2+ EXoaSZOOkcQf0eKE=; b=lZNzRSQoQR5aNZu4pXV9NsTYLcIEOsvUqH4mGNamtZs PItAEaNjgzElgUj5ex2oSp47sRAcobcV9hiUj5PFmyRWzo5umwIgAhSM2cLBpQVU pP6L2iq3BZUQFvIfVA6ECysgH2XSuOWKcTwBCK5STNs+IpK0IvcnfaQV1NpZMYY1 P/aFXsdAKHPGWGMfAJ6ArEXJSYledmLav2gYLI5ORD/KOk3kXfFI7Vcy+6pu64Yn B8ya6Ym8aWSPKmxO+DGOcvpMnFvZSRf7UibCwNXjAm9rX9owrSSczUIfULNJpmnl nnn47anNVTBNgjO0FGv8ISvW03lYLwM9CE9OxSMrq8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=lJJhgf 2RwKjrOe1+5XAX0iV+c2+EXoaSZOOkcQf0eKE=; b=GqWYshLCK4spFwwOXIYXpD tCZjfjSs6txWhE0Vx6Uv1nu4WvGGcrD/gWLauOU64PjT7x00zTl/opnKNytS+obr K0xCykYRHs/0HWD68sjT+M4jLzP6IhwYMu2V+4keVjQJHI+DTWPoeYqBA1VUA/72 cLyGflCt99Nv1/HcyjvuFxM2NKqVcTbFRbqbk4JV32xAZ8oIhobZeNmkxVxqES2I +5E5ubV7nseFGHK/zhV3guvP7fYg3go821UMeez+kxgeu9WYHMk4OSyH4zTDZclv DPxMGcND1j+KzIYe/0YXaGjeDc1asg/q+z88QeyLx4zFw785NaWvbuOUR+8YGzpQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefiedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlse hprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 271DB328005D; Tue, 17 Mar 2020 22:25:27 -0400 (EDT) Date: Wed, 18 Mar 2020 11:25:25 +0900 From: Michael Paquier To: Tom Lane Cc: Don Seiler , Postgres General Subject: Re: Mixed Locales and Upgrading Message-ID: <20200318022525.GE214947@paquier.xyz> References: <5624.1584372534@sss.pgh.pa.us> <31606.1584453361@sss.pgh.pa.us> <1182.1584456350@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xkXJwpr35CY/Lc3I" Content-Disposition: inline In-Reply-To: <1182.1584456350@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --xkXJwpr35CY/Lc3I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 17, 2020 at 10:45:50AM -0400, Tom Lane wrote: > Don Seiler writes: >> What are the ramifications of changing collation like that? Should we >> consider rebuilding indexes ASAP after that? >=20 > Text indexes would definitely be at risk here. I'm not really certain > how bad the problem would be. Do you have a feeling for how much of > the data is 100% ASCII? If you could be sure of that for any given > column, you wouldn't have to reindex indexes on that column. There is no way to know how much indexes would get broken without having a look at it. Anything ASCII-based should be of no problem. If you have a doubt, reindexing evey index which includes text column data is the best course of action in my opinion if you have any doubts, because that's safe even if it has a higher cost. -- Michael --xkXJwpr35CY/Lc3I Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5xhpUACgkQnvQgOdby QH120g/9H4sknsQZfCYH+wgeo0fU065FjGcOXx4p1pZls6tXsRQOL7+iDtxI0KWt 6xYsqhaebhXQkpKQ+gbWWxFak41pg88mdGYNnQ1zUssbEfyDD4Dsbf7jv5UY/5Ub kq3tR4wemkXdVtKC5fSjUsdYYp4IsunU8RPczpbQBEOcprSGUB88wmVR0C2AowA1 uYtWZmTpMr1aINYfGiW+LdLV4/H/L1IRM7w5EKcNFj/V7autiqjJrVSOiitgHOqR xmF3NnN+cmZIq/jUeCYM826BbUpG4H+ph0kCImTgISxZUp5Bsk5MjLfeHNnwDw3q 5Wp7N0tBDPmFmbgBDDmcyisM4Nof8YQmz9d0K+glu6oZe8LvN1RjdzwkVTjJM/eD L3MG4H8AHHp1wGcaTc3EuHBQYSz3ckp6ppAf0YqN1+3fC0spBSYMFBMMhesbyjEi bGFNdewXg7NalhCHEIfIUUS23/m2EmOR/VVMNNI8gMlHbGjb3enw5DFdcta239lw tQOOltNT4iXCuLRDGaymVJcaOESpbHv4jWvmYEgzTUs81RUTwq8UJzmiPgON3bW+ /Q8AWTLLJONc6lCa5a8h5tl6tq5M8IJ289sgdqTgwUFjbB4kM1ui7lRHcC9yzMhq KpzCopbq5Slk6YXouo5GLLD9FL1OZwF15aWC6PAMe8UZUU2l1wg= =INia -----END PGP SIGNATURE----- --xkXJwpr35CY/Lc3I--