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 1vcm3V-00Adt9-32 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jan 2026 14:59:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vcm3U-002SCj-1a for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Jan 2026 14:59:37 +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 1vcm3U-002SCb-0X for pgsql-hackers@lists.postgresql.org; Mon, 05 Jan 2026 14:59:36 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vcm3S-004hPS-0g for pgsql-hackers@lists.postgresql.org; Mon, 05 Jan 2026 14:59:36 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-43277900fb4so860815f8f.1 for ; Mon, 05 Jan 2026 06:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1767625173; x=1768229973; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=GJ9qrUNSqSizd3SwDrso6lMXaU+JQ3L2NRfB4BcUBD8=; b=Sq3JdkBb+TNS52rCfv0GZS9GZ0J9ntIQ/CKLiXax45pbV3gjrvPg33kFbfQxzqCVAq kp8sUwqeH6RJMw40KB+KXhb/2QnXVDYboJAAUrw4Xt/HNcbpywrfSTPfECpxw1td30RT USZZSTttXO0gbOwfrpr7qEYXUXNZnIjHMXLwq3PgH+qLwtg8lKn4Xk5XPa8MyjuFSgLP VkAvupqA5Qn6jc9yfunwSi8VpesfRKkRHAZbtxolO+2wg0kqHpXPNprjtOQreheqhnFb naDRW0w4OQ2CpOR3kjv8nSWdt4VUZgrHAj4b/6XUmrlEJwNC6qiogD5aOJTHzaESXneU GU0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767625173; x=1768229973; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GJ9qrUNSqSizd3SwDrso6lMXaU+JQ3L2NRfB4BcUBD8=; b=QMBaY+KSErCe4GvDLpFs/Jo0KMqB1LkuDU9emoVdvuV7m1iqmhm+qg2Rzc5Y7vNl8N vwSsTGo+sRCGwwRF5Qf469CsDIHfPajKfEhj8Y7DtscmF+gWmkp3y47BsXGDweVCey85 8huSkIOILUKdqDsTWm2TvfRMJ0u8OixomulE3xazBqACORGUeaAsH/X0E/owpDykIXC+ MHBrpfNy7ftkLuICbeFez9ol/JvWEwysFme4U1duVod68cTIsaao7DqKx5wglHH5wUGf 6AeFIVgO1a9cy+ZVsmlxKMkARli/dgudDseXZVwDrfF72A/tQzHrceAXplPsTlKqn1sh M06Q== X-Forwarded-Encrypted: i=1; AJvYcCUl5gmdisBKCrI6YQ87uooIAg9R5qrG3C8OhHRl7TFOL69Fjbp89D1oOSkRu5v0wbORkWVU2CQKgoinSbyb@lists.postgresql.org X-Gm-Message-State: AOJu0YyUv7JJ2xxKQF/XknKFzNbMYYweCGN+XqpLDabMUATsh/gbOaOc /puEFDsp/xJ8qAvRoDgsimy5zLS6cp+WXdkL10CbqvkFDLHGN+WeEwD7L+6cyh6AfEM= X-Gm-Gg: AY/fxX7fPcrrkY6mZZQamaT4g5U7UU7KIJVOt5cLvLPdPa2expFBwWiFVLrve3ZnNP4 MUn8cqfSEJyTTpXFeyYHPtoavHcq46HcK8aKsht450P22j9pOlRv9MNEM6ns9TzmnpqNjbn2xy3 ns0pWOYh40aq6HkQ5ItarcJqhxrjuH87JdW8s4EmNId4mmAcJxaAc6Rc87i6fJfrMDsuixO6sOU K/w97zuo7tpDGPV2sFpRNnZUozV8Uj5fOSFjbVd7tZLBK6wQTsgZS6G+EJFRLHS6nWaGSzI9Kth i9raob+vQTKAqCNAvDmNkuqkd6AJ+Re45CHYwUGQMUP7JFQUvJ1eAQDRjYdsVl8TeVpXxnPn0d3 MMfTQyUIAoWUM9A9vuD5l3hKd2Js33Abwl0szuj7O67zLCHLkVERs956i/nhFoigtIzqlFJnUiA hgdtp/pa6i5TpUGWWDE8wROrc+ X-Google-Smtp-Source: AGHT+IGdYducxGkT3rxCiJWFvkzoNtCleM/GVfVa8rvmD6R+2+Pcae+Tt51gni5bIQR5Da3/y1l8Lg== X-Received: by 2002:a05:6000:240f:b0:430:fbce:4575 with SMTP id ffacd0b85a97d-432aa42ccf6mr10509701f8f.21.1767625172976; Mon, 05 Jan 2026 06:59:32 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324eab2c4fsm101181242f8f.42.2026.01.05.06.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 06:59:32 -0800 (PST) From: Antonin Houska To: Alvaro Herrera cc: Mihail Nikalayeu , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <202601051404.qkpher3pinlm@alvherre.pgsql> References: <202601051404.qkpher3pinlm@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 05 Jan 2026 11:07:00 -0300." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26357.1767625172.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Jan 2026 15:59:32 +0100 Message-ID: <26358.1767625172@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera wrote: > 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 th= e 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 Thanks for the hint! It seems that the already committed WaitForLSN() func= tion does what I need. -- = Antonin Houska Web: https://www.cybertec-postgresql.com