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.96) (envelope-from ) id 1vclEm-00AUdc-25 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jan 2026 14:07:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vclEl-002Hmm-17 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jan 2026 14:07:12 +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.96) (envelope-from ) id 1vclEk-002Hme-1q for pgsql-hackers@lists.postgresql.org; Mon, 05 Jan 2026 14:07:11 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vclEh-004guC-2Y for pgsql-hackers@lists.postgresql.org; Mon, 05 Jan 2026 14:07:11 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id D78BFEC0128; Mon, 5 Jan 2026 09:07:04 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 05 Jan 2026 09:07:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1767622024; x=1767708424; bh=f HXPqDYl4gQHd8U9VpVSBRrmgpv8mhXBwdJWJeM2MxQ=; b=UAOSW+KpYFiFtljJy ftOQzycC3NyspiazapTdn+TyFBW9m0Txus5NjXnmegG/45Cq23wIdxnvtd9C+2S5 6Q8zH8WAn2U+2e+OnN4k3iWjAdLhxo55KNK/H7Y81uq3E6HAJZR13nYsGzgRVjOT jm9Jph8X0CDAt7zYc1l9BtI/20Nd3JMb6JBhAug5xYJfKxLoJSFruYPydcslC/XM z/KK6LBOIsLV2BkVuzMhMlY+tJin9tB5PVqJlqqGeshWheMjDDb+lKrx7/JBlJY+ z97L4KCayOkBD6rXD7sXWuUm9NwVN43XerBNK6QvXjVqHMS2DEMklt2B30eO1cEM yqsVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeljeeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpeeuiefgffeukedtgfetueeugfetvdeuhefgheelfeehleejleef ffejtddtkedvjeenucffohhmrghinhepphhoshhtghhrrdgvshdpvghnthgvrhhprhhish gvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpth htohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigsvghrthgv tgdrrghtpdhrtghpthhtohepmhhihhgrihhlnhhikhgrlhgrhigvuhesghhmrghilhdrtg homhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhg rhgvshhqlhdrohhrghdprhgtphhtthhopehrohgsseigiihilhhlrgdrnhgvth X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Jan 2026 09:07:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1767622020; bh=sbM8t7ijwAOv9SgfuNnNHuJfLQ95iSYW5ZfZ5eTPNQU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=otnWMGyLp6awUTGN9FhgBVjwkKSHgPK3UEBUXkS14rN+tTqMqrxbolO9wh35gJ/8f T98UCX85U2xMcy4s6a7gcRPFtEiJs1zkjyk2KQE4/xZaa5xXgGLgIyNoxG75qRtKbo ETsP6J3ygSrE37Kw3kB2YctYLpLm8wG/eEB5s9yv45oh87mQru38R53u0qxkuL8HUv 4xWELspxYWJVntYEjtya6WmluW3lbgGgfkwGxOEkcfTj1vS99I2c+9gdIFpW4wgrXR 94ZaIcHs/Figo17W4nArldg0kBPf5Je2NqJAh1DG9o2SwOhbvtm+TXNHSG55a4SkTq N9sVAKi8D4AAw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 489D578; Mon, 05 Jan 2026 11:07:00 -0300 (-03) Date: Mon, 5 Jan 2026 11:07:00 -0300 From: Alvaro Herrera To: Antonin Houska Cc: Mihail Nikalayeu , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202601051404.qkpher3pinlm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <12236.1767610447@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Jan-05, Antonin Houska wrote: > Mihail Nikalayeu wrote: > > Probably it is because > > > 100000L, /* XXX Tune the delay. */ > > > > 100 seconds is clearly too much. > > I confused milliseconds with microseconds. Since I was only running the code > with debugger, the long delays didn't appear to be a problem. > > Instead of tuning the timeout, I'm thinking of introducing a condition > variable that signals WAL flushing. I think there is a patch that adds support for this in the queue already -- see this message: https://postgr.es/m/CAPpHfds-KiZRuCruc0jHxLSxLqzKcHJGwOFFA0b_RgaJvtUOEQ@mail.gmail.com -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "¿Qué importan los años? Lo que realmente importa es comprobar que a fin de cuentas la mejor edad de la vida es estar vivo" (Mafalda)