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 1rAmpG-008CMx-57 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 08:00:10 +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 1rAmpE-008Cxu-Np for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 08: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 1rAmpE-008Cxm-Bl for pgsql-hackers@lists.postgresql.org; Wed, 06 Dec 2023 08:00:08 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rAmpB-00932t-N5 for pgsql-hackers@postgresql.org; Wed, 06 Dec 2023 08:00:07 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50bf69afa99so4119618e87.3 for ; Wed, 06 Dec 2023 00:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701849604; x=1702454404; 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=W8xggsKnkKPjB3+8GHVBo8DPYUfvOvXMKaZgRHpLeJE=; b=k48+5xcarFl0n0+PJJI1BQMrXO/Dn7GialLdjgHSik7uwkhvig1qzgbf6zU4m1Jrly yk4/+51/VbF/ahPcs9QO8EECse+B28pDFJxpzu93DMAqObAfxKXo87MHgj+biqmpWTS9 XS5Dd+uP/ZK71Inu/HByaxRAPlHOrCJZ83QFFfvE/n0GWuK18pBIFdd3Hazu6zhiz3Yl yDNTpMXrYQKkGlMO0bSPgZDGvZ+cqn1mLR0lFJpDYWwvXSBDx9XuaHvpg/bqZ+aU0f7S o/wL/0ICOf8gZYOCjEZgB2eFYPn6cZ9Tw83Azbxmo8ZzC813Uz5vnHWi8+gYg47A81z3 qMIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701849604; x=1702454404; 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=W8xggsKnkKPjB3+8GHVBo8DPYUfvOvXMKaZgRHpLeJE=; b=xMsC2E228X9lFBs4u0MM2SL7pLTclL2EO/7mgHp+ysX6XoD1D1dvPFKsMpz4flrVE9 xyUOJQpI9aYvxyEUrD3ckWhRyM2v+FaKxZlFUGvg19hdpIqyhVJzajuPqx34pALta+pK MWIgMWjNIBMarlkSRpMJHxju6r//BUiV6a+8K8nrgrgTumcav/iOAKyPJEdPy9nycwYD NXa9HiWNx5cMUPLPtthF1+Mpu3xLspvZwdIVLc+EAllf7lLU48Wkd5scwp/HyyDSklJE oF1o2ZltAVouEZVB0NJv0V2Z+i4oxeVbJYAvoX3bXLyWspn3Gxzt4/geBS0+87RvrkBZ +RYw== X-Gm-Message-State: AOJu0YyKZ5nQWBAJ+d4KB+0f0rjXbQF71sK0c/9Q9oQL0bkVKCzCMjzm +eb9XmkCCyNWKjeGJ0YBl6I= X-Google-Smtp-Source: AGHT+IHozxvYPOOA5mB9jJmQtMB0GSWvANUyiU76x0lKuCW5fDRTYutVG/rFUFVNkFC7OEG2WwNwVg== X-Received: by 2002:a05:6512:2815:b0:50b:efd3:7e3c with SMTP id cf21-20020a056512281500b0050befd37e3cmr334323lfb.31.1701849603660; Wed, 06 Dec 2023 00:00:03 -0800 (PST) Received: from [1.0.0.7] ([178.155.18.102]) by smtp.gmail.com with ESMTPSA id y6-20020a197506000000b0050bfcd6cb15sm682344lfe.32.2023.12.06.00.00.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 00:00:02 -0800 (PST) Message-ID: Date: Wed, 6 Dec 2023 11:00:01 +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> <2d9aa2e0-7760-5299-e20a-bcdef1ae7712@gmail.com> From: Alexander Lakhin 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 06.12.2023 04:17, Michael Paquier wrote: > At the end, just applying the filtering all the time makes the most > sense to me, so I've applied a patch doing just that. Thank you for the fix! Now that test with the minimal dump passes fine, but when I tried to run it with a complete dump borrowed from a normal test run: set olddump=& set oldinstall=& set PG_TEST_NOCLEAN=1& meson test pg_upgrade/002_pg_upgrade REM this test succeeded copy testrun\pg_upgrade\002_pg_upgrade\data\tmp_test_*\dump1.sql set olddump=c:\temp\dump1.sql& set oldinstall=%CD%/tmp_install/usr/local/pgsql& meson test pg_upgrade/002_pg_upgrade I encountered another failure: ... Creating dump of database schemas                             ok Checking for presence of required libraries                   fatal Your installation references loadable libraries that are missing from the new installation.  You can add these libraries to the new installation, or remove the functions using them from the old installation.  A list of problem libraries is in the file: .../build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata/pg_upgrade_output.d/20231205T223247.304/loadable_libraries.txt Failure, exiting [22:32:51.086](3.796s) not ok 11 - run of pg_upgrade for new instance ... loadable_libraries.txt contains: could not load library ".../src/test/regress/refint.dll": ERROR: could not access file ".../src/test/regress/refint.dll": No such file or directory In database: regression could not load library ".../src/test/regress/autoinc.dll": ERROR: could not access file ".../src/test/regress/autoinc.dll": No such file or directory In database: regression could not load library ".../src/test/regress/regress.dll": ERROR: could not access file ".../src/test/regress/regress.dll": No such file or directory In database: regression Really, I can see refint.dll in ...\build\src\test\regress and in ...\build\tmp_install\usr\local\pgsql\lib, but not in .../src/test/regress/regress.dll c:\temp\dump1.sql contains: ... CREATE FUNCTION public.check_primary_key() RETURNS trigger     LANGUAGE c     AS '.../build/src/test/regress/refint.dll', 'check_primary_key'; while ...\build\testrun\pg_upgrade\002_pg_upgrade\data\tmp_test_T6jE\dump1.sql (for the failed test): ... CREATE FUNCTION public.check_primary_key() RETURNS trigger     LANGUAGE c     AS '.../src/test/regress/refint.dll', 'check_primary_key'; The same is on Linux: PG_TEST_NOCLEAN=1 meson test pg_upgrade/002_pg_upgrade cp testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_*/dump1.sql /tmp/ olddump=/tmp/dump1.sql oldinstall=`pwd`/tmp_install/usr/local/pgsql meson test pg_upgrade/002_pg_upgrade So it looks like     my $newregresssrc = "$srcdir/src/test/regress"; is incorrect for meson. Maybe it should be?:     my $newregresssrc = dirname($ENV{REGRESS_SHLIB}); (With this line the test passes for me on Windows and Linux). Best regards, Alexander