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 1gmJuM-0001lz-Ji for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 14:53:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmJuK-0006aI-W2 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 14:53:36 +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 1gmJuK-0006ZR-P6 for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 14:53:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmJuI-0004Mi-Pm for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 14:53:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0NErVmG026306; Wed, 23 Jan 2019 09:53:31 -0500 From: Tom Lane To: exclusion@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15605: Unstable regression test "tablespace" In-reply-to: <15605-392cf14f9138d278@postgresql.org> References: <15605-392cf14f9138d278@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Wed, 23 Jan 2019 08:57:43 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26304.1548255211.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Jan 2019 09:53:31 -0500 Message-ID: <26305.1548255211@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?utf-8?q?PG_Bug_reporting_form?=3D writes: > When running 'TESTS=3D"$(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_c= lass c > where c.reltablespace =3D 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.) regards, tom lane