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 1rARHl-006jJ9-I3 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 09:00:09 +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 1rARHk-002oKu-1h for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 09:00:08 +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 1rARHj-002oKm-Nw for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2023 09:00:07 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rARHg-008tGO-W4 for pgsql-hackers@postgresql.org; Tue, 05 Dec 2023 09:00:06 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50bf4f97752so2582687e87.1 for ; Tue, 05 Dec 2023 01:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701766803; x=1702371603; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yuLiDBXEtZpOLgoV1Opo5DoxTXsacHlQ4ypQFJdsdUI=; b=NDVf2lrEKCTok/jICGOgLy2Y1ULxJYcRDdvpCM5ZrEcnXy9S2q9n51gfet7CQspeGH sNIBavCBVoQblziXCNWiRXx2I9pwv7TTXN5Yg+ASJwVqXOx9wBZfdOIJel5c76rxhrIn 7RjFYeMpOIv+Q2xHpa1kGE5sfDOu99okaDivOxuNTaRhqflbf0egw+43M6BfXl0q14bt S7Qh7zUD7nOjgxE9cWFgw388nDI0xIaGusAvYd50ToC/GOhXMt+7RGtQLA0zISKchYGd Vlp7DBeQ1oZRRd8J9UbV8WoVTt1gdeBHLZNt5Rln8DUdFWOP9fe+r9MaGzNQDYtw7DSY s6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701766803; x=1702371603; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yuLiDBXEtZpOLgoV1Opo5DoxTXsacHlQ4ypQFJdsdUI=; b=HB3yL0ZsH3V5SNw4MxgcIbh8X8dWcaVShWFfsDmeJ52A4+EO3VXqf5AKZsJKKYu2x/ SIK9XOPO+54swypj+KilQnO8hQZ5ucw9L0dBKDe+4UcwaTNdKXm+1hYEerDycGXOBmoW BRjZ8zzXr3WAr3oR8DzqDXPD8alDX4hkWKrXF8UdDFUDGt61A2nzxw/EU5xxxp0IwWTz 28OotREeSlLC3MUm4UziJQoGPSu1V2uSwyZAmFB7ksNx2+HvLRD0ECsM4lbMJ9RvE7Is ezo2exvvjd8tYECO0x/zFL1uIqRDkIQQ9+MpHBfeSY+K1AjR09OlsyymlhXYkAfx3wyg 92sA== X-Gm-Message-State: AOJu0YwIpOWuk8JHGshxJok0WdX/5uukQdjSBRuPxX7qUBfsjQEvsP5G Ofr4iRFXtsRP4kdCsoz+OAk/9Z86W0OAug== X-Google-Smtp-Source: AGHT+IHCQruJBqFpCeA/kTjFVMbKjAg03EBQcRMrZ4winq4g6VSKGEscJR17CjeRAp0C5XNpYkPOjA== X-Received: by 2002:a05:6512:234b:b0:50c:c6c:18b5 with SMTP id p11-20020a056512234b00b0050c0c6c18b5mr214224lfu.72.1701766802995; Tue, 05 Dec 2023 01:00:02 -0800 (PST) Received: from [1.0.0.7] ([178.155.18.102]) by smtp.gmail.com with ESMTPSA id fb17-20020a056512125100b0050bf8129d47sm527529lfb.146.2023.12.05.01.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 01:00:02 -0800 (PST) Message-ID: <2d9aa2e0-7760-5299-e20a-bcdef1ae7712@gmail.com> Date: Tue, 5 Dec 2023 12:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Test 002_pg_upgrade fails with olddump on Windows Content-Language: en-US To: Michael Paquier Cc: pgsql-hackers References: <60d434b9-53d9-9ea1-819b-efebdcf44e41@gmail.com> From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Michael, 05.12.2023 10:56, Michael Paquier wrote: > Or you have used the test suite with an old installation that has the > same major version as the new installation, meaning that the filtering > was not happening, still you have detected some diffs? It sounds to > me that we should just apply the filters to the dumps all the time if > you have used matching versions. The filtering would remove only the > comments, some extra newlines and replace the CRLFs in this case. Yes, my case is with the same version, literally: build>echo create database regression>c:\temp\dump.sql build>set olddump=c:\temp\dump.sql& set oldinstall=%CD%/tmp_install/usr/local/pgsql& meson test pg_upgrade/002_pg_upgrade So removing the condition "if ($oldnode->pg_version != $newnode->pg_version)" works here as well, but maybe switching the file mode (to preserve EOLs produced by pg_dump) in the block "After dumping, update references ..." is more efficient than filtering dumps (on all OSes?). Best regards, Alexander