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.89) (envelope-from ) id 1iT0RD-0008FX-A0 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 09:20:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iT0RA-0007Ug-T7 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 09:20:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iT0RA-0007UZ-HA for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2019 09:20:12 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iT0R4-00058W-DV for pgsql-hackers@postgresql.org; Fri, 08 Nov 2019 09:20:11 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 478ZVW49Cmz3F19; Fri, 8 Nov 2019 10:20:03 +0100 (CET) Date: Fri, 8 Nov 2019 10:20:03 +0100 From: Christoph Berg To: Laurenz Albe Cc: Thomas Munro , Michael Paquier , Julien Rouhaud , Peter Eisentraut , Douglas Doole , Pg Hackers Subject: Re: Collation versioning Message-ID: <20191108092003.GA8017@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Laurenz Albe , Thomas Munro , Michael Paquier , Julien Rouhaud , Peter Eisentraut , Douglas Doole , Pg Hackers References: <20191108013654.GA1768@paquier.xyz> <3c3b9ff84d21acf3188558928249d04db84ea2e9.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c3b9ff84d21acf3188558928249d04db84ea2e9.camel@cybertec.at> User-Agent: Mutt/1.12.2 (2019-09-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Laurenz Albe 2019-11-08 <3c3b9ff84d21acf3188558928249d04db84ea2e9.camel@cybertec.at> > #3 is the best proposal, but there is still the need to run > ALTER INDEX on all affected indexes to keep PostgreSQL from nagging. > Perhaps the situation could be improved with a pg_upgrade option > --i-know-my-indexes-are-fine that causes a result like #2. > Together with a bold note in the release notes, this may relieve > the pain. Ack. We should also try to make the actual commands more accessible. Instead of having the user specify a version number we could as well determine from the current state of the system as in ALTER INDEX ... DEPENDS ON 'version-number-I-never-heard-of-before' could it just be ALTER INDEX ... COLLATION IS CURRENT or, given the general action to take is reindexing, how about a no-op reindex? REINDEX INDEX ... METADATA ONLY That might look less scary to the average end user. Do we even think people upgrade PG and the OS at the same time? pg_upgrade might frequently actually be invoked on an otherwise unchanged system, so we could even make "collations are fine" the default for pg_upgrade. And maybe have a switch like pg_upgrade --os-upgrade that reverses this. Christoph