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 1uoeZN-007a4g-A4 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Aug 2025 08:53:22 +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 1uoeZM-006Ukd-BB for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Aug 2025 08:53:20 +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 1uoeZM-006UkU-0O for pgsql-hackers@lists.postgresql.org; Wed, 20 Aug 2025 08:53:20 +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.96) (envelope-from ) id 1uoeZK-000oep-0M for pgsql-hackers@lists.postgresql.org; Wed, 20 Aug 2025 08:53:19 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-61a8c134609so1509854a12.3 for ; Wed, 20 Aug 2025 01:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1755679994; x=1756284794; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CGfJLoFsW7A9lykuwz4yjWPQ+T6VrskvjM2k4XsAnxs=; b=OWdll0Rlj/ay+Ub8PD5UiDn5u08wk/PJqLbyJrJpom6vQNuJR2prfaj+OpI0mtQKRv YS1Z0y9zV7h1bEVG/kVf4+KjIP5DuSKzVJ6EpefcAWUu1ZlP1VsJ1BlsE6BvyolEkUBv cAgJpMNddABIIz03QHw+m+FjbQUjxLuwITa0CSt+LQbEweubDHWbAlDwxtluI2nb/rFO PmS+P0O7U5kss5FUFSVlXRqt8081i2An64QtNhtPzRHT1CGuTjjNJNCw4lvolWs92K41 rsKrj5nP7MDxuQG7PNYtQ/KUXycjADgrjAwrsZaqMa2Nl8VOmvnvyBLqej7h95CyDT1O ksXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755679994; x=1756284794; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CGfJLoFsW7A9lykuwz4yjWPQ+T6VrskvjM2k4XsAnxs=; b=R4Xy73Ax3a/JwiwvpAgW8VB/L7FjEShjUd9MTqL6tlguB6rIMz7Xqhj+mtUO4Rk88h JCNOXcegyPLxCI78gxFpvfPUs8mit35o2wR7zfajgSI7dLe1cdCzRaJzNIrVF4WYevFp rNsQQHPIwWE11K9RxrcJ1l0+LkYRXKLwJe68fWchs/qasUQo2zhKV2ySedIp5hk+zHkr 0KeIFn4KOpwRTvPnGb2QRxgtD6SacW2frA76wPXDtaPam7AqbIQM5lL4PB0z72mY6S/s HTNUIe7o2uMRGkaqruj68A6CUbjyaOiQvqZO1XUeOcGrshUgnAREwvqEFhTA4lyhxiUx eKjw== X-Gm-Message-State: AOJu0YzUWEhH3On9xwlkE+vpO+seiYsLn6EzLFL0ghrNw1gH6QLwet34 pgdwmySEnE9YC5fe/wDYeIPhghMvniNiA1AHyHmyxomooslS8+Gre5Dy6DGm9SS9ycnI1qghMDC L2Pwt X-Gm-Gg: ASbGncthrCor/cQr7QsUU7GH7VjkY5whhNmb5eD7IFbHERlfPEN6nY9gIa+KGbWw7DS fUUvD9LxGnCNuk8hbUTCRka3nCKICMwfkDicHLCacsFKvWT9egUIdtgORku1s7upjcnoVZ1Rir/ 3Xm+KngMYoVw5r3Uo57yElWeLCeDkN0XxP7btRtHaCXfSRCaiPfVU4x7/KfPTLkRMlIkjrcXUHp nRzgIKiuIKkxe8iX8uTgls8xNQloWFqjzlXZfPhDBxFwOgHamzt2EI8QoG/skdZro9R1q6r+iCY u1UwcHxguLQI6ULyQS/fPM3bMK72iu0XR+1tQaHUeKvGBy+JnrfIBW+VAgr0CL5GlY27OTeK8Zx 3Y9iSmh0nCoc7JuLlT77QHM4NXiRlMha1Gmsy X-Google-Smtp-Source: AGHT+IGUssX8Qi3h0efyvaJWZ6Jta+fFIAAgHJQnO1UOdEQgjIx1llCJoV1BQIYoAVt86fkdwXRW1Q== X-Received: by 2002:a05:6402:210c:b0:612:b150:75f3 with SMTP id 4fb4d7f45d1cf-61a9752b9eamr1888694a12.8.1755679994194; Wed, 20 Aug 2025 01:53:14 -0700 (PDT) Received: from localhost (109-81-168-144.rct.o2.cz. [109.81.168.144]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61a75778cb0sm3079952a12.27.2025.08.20.01.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 01:53:13 -0700 (PDT) From: Antonin Houska To: pgsql-hackers@lists.postgresql.org cc: alvherre@kurilemu.de, Robert Treat , Fujii Masao , Mihail Nikalayeu Subject: Re: Adding REPACK [concurrently] In-reply-to: <202508191853.wofznwocbi5x@alvherre.pgsql> References: <202508191853.wofznwocbi5x@alvherre.pgsql> Comments: In-reply-to =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC3=3D81lvaro=3F=3D?= Herrera message dated "Tue, 19 Aug 2025 20:53:32 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Aug 2025 10:53:13 +0200 Message-ID: <19708.1755679993@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =C3=81lvaro Herrera wrote: > Still on pg_repackdb, the implementation here is to install a symlink > called pg_repackdb which points to vacuumdb, and make the program behave > differently when called in this way. The amount of additional code for > this is relatively small, so I think this is a worthy technique -- > assuming it works. If it doesn't, Antonin proposed a separate binary > that just calls some functions from vacuumdb. Or maybe we could have a > common source file that both utilities call. There's an issue with the symlink, maybe some meson expert can help. In particular, the CI on Windows ends up with the following error: ERROR: Tried to install symlink to missing file C:/cirrus/build/tmp_install= /usr/local/pgsql/bin/vacuumdb (The reason it does not happen on other platforms might be that the build is slower on Windows, and thus it's more prone to some specific race condition= s.) It appears that the 'point_to' argument of the 'install_symlink()' function [1] is only a string rather than a "real target" [2]. That's likely the rea= son the function does not wait for the creation of the 'vacuumdb' executable. I could not find another symlink of this kind in the tree. (AFAICS, the postmaster->postgres symlink had been removed before Meson has been introduced.) Does anyone happen to have a clue? Thanks. [1] https://mesonbuild.com/Reference-manual_functions.html#install_symlink [2] https://mesonbuild.com/Reference-manual_returned_tgt.html --=20 Antonin Houska Web: https://www.cybertec-postgresql.com