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 1iGOEC-0001Ev-0o for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 14:06: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 1iGOEA-0003Ay-QJ for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 14:06:38 +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 1iGOEA-0003Al-Cp for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 14:06:38 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iGOE7-0002cz-FB for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 14:06:37 +0000 Received: by mail-wr1-x444.google.com with SMTP id r5so7328700wrm.12 for ; Fri, 04 Oct 2019 07:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=NAInjsAGNuQX8YuzcV54vQRAzRMFv5my+UI4gZxJ2Mo=; b=Zd9k060ih6Hm0KhHmMdQHOw1FVHPnPxfCCjxS8cvcXUDFdNj9NsJkL9yup6nZhauH3 u4CdYGho50hR3VmHAygx82bWS8iaUtoVRbL5hvjdEn/VaT+JvkAYvYoQ9mc/uUQuWzf9 YnoXoU+d65hk95Rc6LENr9J7bl5TaTHD7ijQZ7Pq+ifVKl1uN4+V/DUrRjCdZ/ioR5ft Ut0cucjRymaQcZ2jI7qk5FRHBXRc1CSycpGb+wa29+Oif7tWudTJOYSSbCqe7Ln0GBqv cb4B+eWBWZmL0+Oin+2qYFm8BDBofP11HGYnjhnZfzQKmqrsifJNTjncaBw7fwKlDqDV xK+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=NAInjsAGNuQX8YuzcV54vQRAzRMFv5my+UI4gZxJ2Mo=; b=Ju1B3Di3WRT6PseNLtWYDZbHEDKQetxZ2e5RZcSLQnpl+ouYkiQUhfOrT6zH3c9zkA Shz2iIwNTG7Xur3XslyUed1ua1DT0gHas58lbM0Lgn/y48Ub6hNkvFvu7UBXO29mir0w rlp0qFhGc+FTbmxazFVQCenLoYpT811XR9OaSgjh39MHmFKWdD5FNXFrMALbyJzf1/VZ Xdm4gUe7T4hid6nJijwAhCp8mxcIKuBTTTzcfI6y0Vewtj2kKClXPYVHMjUpaYpsJWyU /Re9087MuTlTngwlRPBAIC7sDFT2BL+vUJm80s5fGOkT8p1aaasnSpJlTAYbF8WTheA6 X+ww== X-Gm-Message-State: APjAAAWjoHTc2BNpui6BLfg3cWc4br+WygL/f9GbJ1eLYcDzUEwjEnbZ qxe189PvD7OFp9BKTudCJTIjbQ== X-Google-Smtp-Source: APXvYqx6gce5pznbEyDBlKJozTxuMUqdzE+a9IhKuFXvke2TieuEaVR5FCpQvNrPjXy4hTxvHIHK/A== X-Received: by 2002:a5d:4c48:: with SMTP id n8mr11481353wrt.192.1570197994259; Fri, 04 Oct 2019 07:06:34 -0700 (PDT) Received: from localhost.localdomain (217-149-174-241.nat.highway.telekom.at. [217.149.174.241]) by smtp.gmail.com with ESMTPSA id h7sm6466262wrt.17.2019.10.04.07.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 07:06:33 -0700 (PDT) Message-ID: <7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at> Subject: Re: Clarification on the release notes of postgresql 12 regarding pg_upgrade From: Laurenz Albe To: Marcelo Lacerda , pgsql-general@lists.postgresql.org Date: Fri, 04 Oct 2019 16:06:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2019-10-04 at 10:00 -0300, Marcelo Lacerda wrote: > There are a few instances where the release notes seem to indicate > that the administrator should use pg_dump to upgrade a database so > that improvements on btree can be available. > > Here are they: > > 1. > > >In new btree indexes, the maximum index entry length is reduced by > eight bytes, to improve handling of duplicate entries (Peter > Geoghegan) > > This means that a REINDEX operation on an index pg_upgrade'd from a > previous release could potentially fail. > > > 2. > >Improve performance and space utilization of btree indexes with many > duplicates (Peter Geoghegan, Heikki Linnakangas) > >... > >Indexes pg_upgrade'd from previous releases will not have these > benefits. > > 3. > >Allow multi-column btree indexes to be smaller (Peter Geoghegan, > Heikki Linnakangas) > >... > >Indexes pg_upgrade'd from previous releases will not have these > benefits. > > > My questions are: > > 1. Is this a current limitation of pg_upgrade that will be dealt > afterwards? > > 2. Are we going to see more of such cases were pg_upgrade leaves the > database incompatible with newer features. > > 3. What's the recommendation for administrators with databases that > are too large to be upgraded with pg_dump? pg_upgrade doesn't touch the index data, so it cannot rewrite indexes to take advantage of these improvements. There is no incompatibility involved. You can always REINDEX some indexes later. Now that we have REINDEX CONCURRENTLY, it shouldn't hurt as much. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com