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 1tXoDV-00Eb1c-Pn for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2025 21:12:54 +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 1tXoDT-004FKd-7f for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2025 21:12:51 +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 1tXoDS-004FKV-Rj for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2025 21:12:51 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tXoDP-000QKZ-1z for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2025 21:12:49 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6dd049b5428so48758656d6.2 for ; Tue, 14 Jan 2025 13:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1736889165; x=1737493965; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=jirn3T5oWw6Qc9oqF/RT3ZD/CpuZTmyPjnDs5oKnHjM=; b=c3NwtpO7Zg48eLdB513xqMRZbXYgutiRMCqwAWM2XdUF29fs/xN/0ton842XXMx+zF VHvHbc4S3AZBWgqVazREbpevH0+IcBJwaLgFDpRKqjm5ymqgtb1WIR7MYYme1WahBU6T bxUs4C2rA12dqXbkPkgahh01ZcZwysuA+gftLxNhCkosc8NJvNmiGkho4+pWH5Zvyz9B WLeENu5BrxCR/lTfTAjU2PU4Zcz7ougo3Typ8jVHGYD3ZWqYvc0N6OqJe3DbtU9lQjj6 gVOpDeAJ87D2N5HvFU0oGIXKqWktiPzeWdHITvSxEYYssoo2Y0REPIjPynx2xWO37zUD iTlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736889165; x=1737493965; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jirn3T5oWw6Qc9oqF/RT3ZD/CpuZTmyPjnDs5oKnHjM=; b=F8M767B4TDc1fsnbmlKWI3Jb0cwjHQKJwZjH8R8etUoedKaVTQQrR23cN/MHrFtE/z O1ES8WOjWu7V5HrhQf49+02b47Fvnous9J8JmoUQrCnGzaqrGVzJai5nbgwKUGRREqYF GkcTQjo4BmdL2AEF+Rm5HoJ/auGpyn2Fx4rHMtf0g8dz3mzW5qDzIoR/uLTfws5ujOZq nP1u3rANk0P2pfKqkY1WTaEZmQs50iiDYBCMJzIXVZwrN0MFofxWVJSSA8OPnuQgDpy6 dAn5Od9YHjKa8IaYgdl04Uljy1oc1iJ9+ZHuG22FWCDdIgMow8FA2MCbczXh/wL66A8J I4Bg== X-Forwarded-Encrypted: i=1; AJvYcCV6b0fSRmenWvBlxOqGz5FpsgQjekxcNZUqUT2TV3JwhUWvH1+HOCc/6iHj15+IVSOMZdSINiIfbWSL@lists.postgresql.org X-Gm-Message-State: AOJu0Yw6q0QgBkENpjgZRRMBsNd4VQy6v0wNRV0ev9qL5gj9zrEDgxOL Hx7PDKk2G/u1i0/L7cS/DkaWtvEJETZAZrU9rHkYuAydyRFIaV/XmgG9gXOR8dA= X-Gm-Gg: ASbGncu+Qe3hWFHMPPiwkSormaKv20Y79LxUn//EvTXBYL3k9FJWkAMu9YbQErZAAR3 dwy6J8VVeBE33QsIhNqTthEgBJEi8k3zqRHLUKOB3Jtc75C7DG8phze57A2D9FtS2fRGVGhTXlr aF78OTvLLeRDxwJOx5TjBUTAxwr3KPpKUrOdejtnJyhqUgUQKlXSTWf4tg3lc7TtP/rlz8yUuqY EgAkVGM7YnObjp23/xKGjDDyCm3CJAW8ftsn552ucFsuwY4mH7WsKifbpluCxXGCXo= X-Google-Smtp-Source: AGHT+IFaVpHcfreLtNrPSltt1s/ZmRnmbjDNuC7jCZ+PQAwlDWUjPH++xpyOtiiEcODUJTDHxLTdWg== X-Received: by 2002:a05:6214:2263:b0:6d8:871d:49f1 with SMTP id 6a1803df08f44-6df9b2d875amr369616796d6.44.1736889162293; Tue, 14 Jan 2025 13:12:42 -0800 (PST) Received: from ?IPV6:2605:a601:a681:6b00::1cc? ([2605:a601:a681:6b00::1cc]) by smtp.googlemail.com with ESMTPSA id 6a1803df08f44-6e168753e33sm37290896d6.32.2025.01.14.13.12.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jan 2025 13:12:41 -0800 (PST) Message-ID: <2cfbe91b-06d1-4609-845c-135d8b5157f8@dunslane.net> Date: Tue, 14 Jan 2025 16:12:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_rewind fails on Windows where tablespaces are used To: Thomas Munro Cc: Michael Paquier , Alexandra Wang , Chris Travers , Farooq Rashed , pgsql-bugs@lists.postgresql.org References: <5169f6d5-240e-49ec-9265-ddafa6e863bd@dunslane.net> <982f5caf-6536-4e9f-aeec-227f31114526@dunslane.net> <5d8284d1-b7b2-4dfb-a686-429d9ae0b04e@dunslane.net> <039f5e85-6059-4c94-bf0b-20c38b9e24e3@dunslane.net> Content-Language: en-US From: Andrew Dunstan Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2A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Rlv/XZBIho4J2tkZOnteZJZ+GbxQVlINt6fd8P6al3MWOvpP/ExJPguEfjOsO6Njy xjo3WfpD4lHMOR/Oc3/8mScEF84rF2jXbsFgelWnbPWAvXY+pD0dXOFRkagGmC/viwBDqq5b 5tk76kKmUbZxABEBAAHCwHwEGAEIACYCGwwWIQTkPlhGHfx8v0RpFaWZ+n/LWfw7gQUCZFlx 5wUJGVGAjgAKCRCZ+n/LWfw7gf+iB/4g8CPY5jihf5r/8EsoIGe2H+dpVmpPF8YGBzTIvCz/ fQoOq8AX/pE76QEuFnFZWfjw+wgBXgCVmkox2Eflkk6z4ND3pcwGZ6CfCxTQCDk/dij+2DQ4 6bmDCy/sBgcbz9mTpoLC11HLoPae6YN9nBNQRZDcEFEu54OaVOqlIdbA6m+POIBCXZdHOFc0 WoDTgxHRzC1jgQNidyd6tKqcsVJs0dzF0oKTmFFmUAqTdJO12LBuNA1rlqrR3EtpYk8B/wtS 5dIMD7Q8hwQpL+4C6GNpb6ZKnPkLi47pDOLhz2qBrqN+rqUEsT3YnExYpzj5yOBi+FlmV1Hw 49QYe1sn2ZPs In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-01-08 We 10:38 PM, Thomas Munro wrote: > On Thu, Jan 9, 2025 at 3:45 AM Andrew Dunstan wrote: >> Those patches didn't actually include any tests. I guess the best test >> would be to create a chain of several junction points and then run >> initdb on the leaf of the chain? > Yeah I think the three interesting cases were initdb when run under > junctions like these: > > 1. Volume GUID format: mklink /J foo \\?\Volume{12341234-1234...}, > expected to break without patch > 2. Chain: mklink /J C:\\aaa1 C:\\aaa2, mkdir /J C:\\aaa2 c:\\aaa3, > expected to break without patch > 3. Chain of length > 8, expected to fail with ELOOP once the patch is applied. > > (Syntax may be off, I just googled it but don't have Windows to try). > > The way to get decent tests for this stuff and all the rest of the > wrappers would probably be to develop this test suite further: > > https://www.postgresql.org/message-id/flat/CA%2BhUKG%2BajSQ_8eu2AogTncOnZ5me2D-Cn66iN_-wZnRjLN%2Bicg%40mail.gmail.com I can confirm that these two patches apply cleanly to releases 13 .. 15, that builds are also clean, and that tests 1..3 above pass/fail as expected. Tested on a WS2019 instance. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com