Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyas0-0000Cm-9s for pgsql-hackers@arkaria.postgresql.org; Mon, 15 May 2023 16:16:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyarz-0005dF-80 for pgsql-hackers@arkaria.postgresql.org; Mon, 15 May 2023 16:16:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyary-0005d0-Up for pgsql-hackers@lists.postgresql.org; Mon, 15 May 2023 16:16:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyarw-002UDV-0Q for pgsql-hackers@postgresql.org; Mon, 15 May 2023 16:16:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 34FGG8QN2165313; Mon, 15 May 2023 12:16:09 -0400 From: Tom Lane To: Marina Polyakova cc: pgsql-hackers@postgresql.org, Noah Misch , exclusion@gmail.com Subject: Re: Conflict between regression tests namespace & transactions due to recent changes In-reply-to: <80d0201636665d82185942e7112257b4@postgrespro.ru> References: <80d0201636665d82185942e7112257b4@postgrespro.ru> Comments: In-reply-to Marina Polyakova message dated "Mon, 15 May 2023 18:27:29 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2165311.1684167368.1@sss.pgh.pa.us> Date: Mon, 15 May 2023 12:16:08 -0400 Message-ID: <2165312.1684167368@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marina Polyakova writes: > IIUC the conflict was caused by > +SET search_path to public, test_ns_schema_1; > +CREATE SCHEMA test_ns_schema_2 > + CREATE VIEW abc_view AS SELECT a FROM abc; > because the parallel regression test transactions had already created > the table abc and was trying to drop it. Hmm. I'd actually fix the blame on transactions.sql here. Creating a table named as generically as "abc" is horribly bad practice in a set of concurrent tests. namespace.sql is arguably okay, since it's creating that table name in a private schema. I'd be inclined to fix this by doing s/abc/something-else/g in transactions.sql. regards, tom lane