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 1kPNdJ-0006bf-C0 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 10:22:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPNdI-0006iY-9Y for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 10:22:16 +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 1kPDZG-0003Am-Ig for pgsql-general@lists.postgresql.org; Sun, 04 Oct 2020 23:37:26 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPDZD-0006MJ-FA for pgsql-general@postgresql.org; Sun, 04 Oct 2020 23:37:25 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6306621A6CFDF for ; Sun, 4 Oct 2020 16:37:21 -0700 (MST) Date: Sun, 4 Oct 2020 16:37:21 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1601854641360-0.post@n3.nabble.com> Subject: Cluster and Vacuum Full MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have tables which are Master Detail and usually my program loads all deta= il records of a master record. So I configured CLUSTER on all those detail tables to use an index which is the relation with master table. With that I can load less records to Shared Buffers because all detaild records are on sequencial pages, that=C2=B4s fine. I know that to have this working I have to periodically run CLUSTER, ok too= . But today instead of CLUSTER I just ran VACUUM FULL. How vacuum full recreates entirelly that table, like cluster does, I thought it would use that index too, but didn=C2=B4t. I didn=C2=B4t see what sequence of records= it did but was not the one I=C2=B4ve configured with cluster.=20 Is that expected or Vacuum should obbey cluster configuration ? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml