Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmKR1-0003L7-B4 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 15:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmKR0-0000yu-3t for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 15:27:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmKQz-0000yn-U8 for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 15:27:21 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmKQy-0005ft-3Z for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 15:27:21 +0000 Received: by mail-lj1-x244.google.com with SMTP id q2-v6so2275536lji.10 for ; Wed, 23 Jan 2019 07:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=oFFvZShXElw7RvI1LPQQ3/sHivCfeMvFGHCv5+QIS60=; b=lDootQIf+4ZhyDOB6BDdzCPpH/IQVRFUBoQJr0l1XAqMTF1ypwzMUQTaDu4k/OmXEV XhE9gcyLQVUy4JHEb9oC4lMzuL/IF20qrRyR73yainu3bv0nsuLYop5aPhrQzu/b9Y+k LXGBWOM3FXeOcH2b5ZMBcTNsbB2JNr450Fuu8ZwURa7h8AjBgDQL/7DfDWgMaNk3V59R oPmsuvmNPBBlUZ3+f2h+NMoxlWYWEnQ54OLFdBZWxRpJ9gYUwp5pLat8qj/JwKxPkVzr M4HNu92eZl0JaxUPS1xDiKUWEm5CzaZHWv2ECvbDn+u6SUXF3hX7pnXSeG0aB6GhF9eW 9bBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=oFFvZShXElw7RvI1LPQQ3/sHivCfeMvFGHCv5+QIS60=; b=e7ygk2067utCjCa14Hns/tjDXQQKfNPYz+X7ew6JlzpLfnHB6HnQbRU3oysacE4gLu gmOhxANT8sSkCd30IMp6kDuqIPxHRk4yj+B85ViNZKU+hK01cpg1rF0O60gObVgiyzaM WdWUPbU3zmFsenlDw2bSYD5iv7qa5bIIBMnwRLvv/jBu5TBMp1KZRxTkJZuxrbjz8Xe4 9OW6EG31CZpkWG7xk5aUF3OI6Y0XEFDEYnxIUL5Y3TZGvdZPhZsTAHhLsDjwX/kIKDeS RuuitldZ0n0ChTjAlDDI5v9RYudfqXjVpQSy679kE3anip6aQYJoJZQxZG+kX6qD4f1Z nFnw== X-Gm-Message-State: AJcUukdkhc27r7UV48C8GhtF6Urbyz99WQZdfgxO13raALml5uAwEL12 AJ/xvDRMsPVmJ4OFnhlabpR2GsDz X-Google-Smtp-Source: ALg8bN6mD59KQi33sJAqrBIhuo6da/uF3Ca+5vZc+IE3XSdBCVhXkTPCoqZSPYmthutsW3j9rifYsg== X-Received: by 2002:a2e:6c16:: with SMTP id h22-v6mr2459481ljc.180.1548257238822; Wed, 23 Jan 2019 07:27:18 -0800 (PST) Received: from [1.0.0.7] ([178.155.4.147]) by smtp.gmail.com with ESMTPSA id 1-v6sm537436lju.61.2019.01.23.07.27.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 07:27:18 -0800 (PST) Subject: Re: BUG #15605: Unstable regression test "tablespace" To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org References: <15605-392cf14f9138d278@postgresql.org> <26305.1548255211@sss.pgh.pa.us> From: Alexander Lakhin Message-ID: Date: Wed, 23 Jan 2019 18:27:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <26305.1548255211@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 23.01.2019 17:53, Tom Lane пишет: > =?utf-8?q?PG_Bug_reporting_form?= writes: >> When running 'TESTS="$(printf "tablespace %.0s" `seq 1000`)" make >> check-tests' I get: >> ... >> It seems that the following query in src/test/regress/sql/tablespace.sql: >> SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c >> where c.reltablespace = t.oid AND c.relname LIKE 'part%_idx'; >> needs an "ORDER BY". > I'm totally unexcited by this. Almost every script in our standard > regression suite is somewhat context-dependent, eg many of them depend > on tables or other objects created by previous scripts. Trying to make > them be robust when run standalone would be a huge and ultimately pretty > pointless exercise. > > In the case of the tablespace script, it evidently has some dependency on > being run in a fresh database, but so what? It always will be, when used > as directed. (I do not recall the reason why we run it first, but > I remember that there was some good reason, possibly to do with crash > recovery.) Yes, I understand that there are some dependencies between test scripts and most of the scripts are not repeatable, but the tablespace test is. I can run: TESTS="$(printf "tablespace %.0s" `seq 10`)" make check-tests and the test executes fine: ============== running regression test queries        ============== test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok test tablespace                   ... ok ============== shutting down postmaster               ============== ============== removing temporary instance            ============== ======================  All 10 tests passed. ====================== So the issue is not with repetition itself but with the random change of the SELECT results. Best regards, Alexander