Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rNFT4-00APKG-R8 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jan 2024 17:00:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rNFT3-00ETMl-Sk for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jan 2024 17:00:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rNFT3-00ETMc-JM for pgsql-hackers@lists.postgresql.org; Tue, 09 Jan 2024 17:00:45 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rNFT0-000gfh-Qm for pgsql-hackers@postgresql.org; Tue, 09 Jan 2024 17:00:44 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-557d08bb0f7so2338190a12.3 for ; Tue, 09 Jan 2024 09:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704819641; x=1705424441; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7H9g1lYNStT27UTwoktqlGJJbRv4vLdDlkLIwAAi+mo=; b=mI0Q+6DDQ85qAZguEZ2x5eOtu2W6jNWLjbPmvu5dPGq0QOUbNXzvPKOJrr/AOAbFnl ZUqhsYEF3m40t1+LIy32Inwgg1dpYwtJUG3ZGryNPP1Xg3hS1GDeq/+6Y48dlaRcMon7 VpgX5XWASYepP9dT7nfChPZxTSJW8hbJI2WTJvThdoztg+UukeLC6EyuDy51+C/8IcpU xKz/wJ6QSHYFfFPQZKUQ5RoUM9qHg9KwkvMUu7CSS8y4vtEQxV08lrnJKY7XmdGHH366 Y6azTWNRrXqYbjxhmp3hqQVrzRc1bsDiQBx//IqvJkEufi1LHmAyUhGCgAYHK/KJH1Kg oC5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704819641; x=1705424441; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7H9g1lYNStT27UTwoktqlGJJbRv4vLdDlkLIwAAi+mo=; b=nkGoOmkWRYXoLoLPVejrJzs7VxMbeo3Ssrv6zw3B7IdKHyoxu2R/gujeuTGmqtyPF+ 8wTNfiZ9ZoL2wPzc8ADhOGWiAOtqm66rJzEMRC9qRUjfyJMn9xQHzhtzjl+BHVBtUx0N rsZFgx3C/56CkhtnoOm9z1mRlnlEo4lbUhl6WLyMUjFxH6AcKUSbv0eGDHhnuVV5Z3o2 GHaFofFE545OJ9HgCC3fb8+WFq98LvwN4k8+XFTRxc/Fn2Gq35U6ZVnMY3J0IbJHW0DT YC+zYqj5G/Hzb854gVUapZmfgLBXsNxyZuFRRV8kL/+xd7T62bXktuMjz+tKw1sR4Es5 WHGg== X-Gm-Message-State: AOJu0YwqLu52kRtgloo4ZYPlkWZay/Y5+QfVo9DlyEcglLxk+oAkSdFH f6ewWcTzzktklr1hkWqAV5+UxRLOzz5VvEXW4BU= X-Google-Smtp-Source: AGHT+IFHMKerTTdzl40SCE2uJVkOf0SenfW4PkzJRl3phxEmR8qmR5f3xQXybSaf2O/W7BxuYvN3qZQ8DLEgKljpXjQ= X-Received: by 2002:a17:907:3d89:b0:a28:32ff:8709 with SMTP id he9-20020a1709073d8900b00a2832ff8709mr607604ejc.15.1704819640343; Tue, 09 Jan 2024 09:00:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Michail Nikolaev Date: Tue, 9 Jan 2024 18:00:28 +0100 Message-ID: Subject: Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements To: Melanie Plageman Cc: PostgreSQL Hackers , Alvaro Herrera , Matthias van de Meent Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Melanie! Sorry to interrupt you, just a quick question. > Correct, but there are changes being discussed where we would freeze > tuples during pruning as well [0], which would invalidate that > implementation detail. And, if I had to choose between improved > opportunistic freezing and improved R/CIC, I'd probably choose > improved freezing over R/CIC. Do you have any patches\threads related to that refactoring (opportunistic freezing of tuples during pruning) [0]? This may affect the idea of the current thread (latest version of it mostly in [1]) - it may be required to disable such a feature for particular relation temporary or affect horizon used for pruning (without holding xmin). Just no sure - is it reasonable to start coding right now, or wait for some prune-freeze-related patch first? [0] https://www.postgresql.org/message-id/CAAKRu_a+g2oe6aHJCbibFtNFiy2aib4E31X9QYJ_qKjxZmZQEg@mail.gmail.com [1] https://www.postgresql.org/message-id/flat/CANtu0ojRX%3DosoiXL9JJG6g6qOowXVbVYX%2BmDsN%2B2jmFVe%3DeG7w%40mail.gmail.com#a8ff53f23d0fc7edabd446b4d634e7b5