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 1rckde-001s5a-Cg for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Feb 2024 11:19:46 +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 1rckdc-004Ez6-Qq for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Feb 2024 11:19:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rckdc-004Eyy-H1 for pgsql-hackers@lists.postgresql.org; Wed, 21 Feb 2024 11:19:45 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rckda-000A2K-4D for pgsql-hackers@postgresql.org; Wed, 21 Feb 2024 11:19:44 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d25a7b02d6so2371301fa.2 for ; Wed, 21 Feb 2024 03:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708514381; x=1709119181; 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=IYzj9khulHUTBR7UZympVVOg5EhbLUdTOaHM1wO61KM=; b=GAb6GFjM3x4ZIQo+y7nDVSCvxzrcWtYMhhVe7groflfjpXpl/quQJ1s4lpitHJioY/ ZyWKQg9UHdQMOnhY3abdYzhQstlkiavVGaglIkhjZ32EOe1+mADjn0I1uoWBT49itXfR SKCMXK19cJ2V7DEGjflSUluoAxUn2oZwnbR2Nu+oQk1p5UeiFjs1Q5Gl0NXCrc62+ght WODZ/nReWNitCcrM0LWNiP81x1ACQEQV1gSMMx5VFielLjdPH06TQV4P4xWH/wZ1nLsD UcDeQ1CvSA3/fke7864U1SLSud3OMZxbkLvDav0ViaAhoYghCuiQCtBXtJBXJ+dpwZKl P4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708514381; x=1709119181; 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=IYzj9khulHUTBR7UZympVVOg5EhbLUdTOaHM1wO61KM=; b=PvaQuTjPgRrNc086b6JP3fEm72RnOkHGyYWGfRWqC6kM16XU+iu5duGt9q2PU20VRT 3PI+2LO8GSv2j+Et8+nX13w1f8TGjUACel1QMHlvd7InUsVdlN+NWBYiQIDpSLa0hw4E R1p986PCdn19uqiwWM9e7NIa7jrB2lsO0UA3V+sprLg74hK8ZUI8MoMPXgKWGONc07K5 HHynCN47W8jlS1rD47CrUtPGGIEeVrjK/+KIlTjfwJDLUHJT0vu/jMUL4YncGtG1DPmh qyJMVDSa8XJZsR8tvYeg1xlxaK1oM2k69hGvj3sq+wwxHlO0thB5Rsf/l16GIGc5AaBY +GGQ== X-Forwarded-Encrypted: i=1; AJvYcCUUF4TGiftJqqByCk4l2kJoC0XG7renSHO9JBVrzQyUOwO9Aa8zG2oOjN+omX2zXxy9TNk9mb7ah5wfh1Lc8IhqcNwnNE/7onGqOfh1 X-Gm-Message-State: AOJu0YxExhyO/8pdYjpuZCFyun8deD1zu6Ckiyca+IURJDGEgHVIf4mf VT0H+TsihyyNLhngC+OinU43+bzHdqbkwpKlfFM5Ve0WXTpFYJr3dW0+C6GxVedQKwGch04fAzZ 82xPEkJsj6ZGhltKulqHIfeJshaUNPGtXf1Q= X-Google-Smtp-Source: AGHT+IFiPG470RVQuHBwPj0aA05+GcONdg/1qqupoSgsKXe3dmmNBHzc1ueVMCAr1IoZS7od8Mf8EMPXnhc5iIxS1EM= X-Received: by 2002:a2e:a782:0:b0:2d2:3a7b:a78d with SMTP id c2-20020a2ea782000000b002d23a7ba78dmr6880550ljf.33.1708514381128; Wed, 21 Feb 2024 03:19:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Matthias van de Meent Date: Wed, 21 Feb 2024 12:19:29 +0100 Message-ID: Subject: Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements To: Michail Nikolaev Cc: Melanie Plageman , PostgreSQL Hackers , Alvaro Herrera Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 21 Feb 2024 at 09:35, Michail Nikolaev wrote: > > One more idea - is just forbid HOT prune while the second phase is > running. It is not possible anyway currently because of snapshot held. > > Possible enhancements: > * we may apply restriction only to particular tables > * we may apply restrictions only to part of the tables (not yet > scanned by R/CICs). > > Yes, it is not an elegant solution, limited, not reliable in terms of > architecture, but a simple one. How do you suppose this would work differently from a long-lived normal snapshot, which is how it works right now? Would it be exclusively for that relation? How would this be integrated with e.g. heap_page_prune_opt? Kind regards, Matthias van de Meent Neon (https://neon.tech)