1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

This patch fixes in intermittent failure in the regression tests:

there was a race condition between the "alter_table" and "rules"
regression tests. Depending on scheduling, sometimes an ALTER
TABLE command would operate on a relation created by the "rules"
tests, leading to unexpected results.

Neil Conway
This commit is contained in:
Bruce Momjian 2002-08-04 04:28:10 +00:00
parent ce3d087010
commit fecc04f95a
2 changed files with 6 additions and 6 deletions

View File

@ -615,10 +615,10 @@ ERROR: ALTER TABLE: relation "pg_class" is a system catalog
alter table pg_class alter relname set not null; alter table pg_class alter relname set not null;
ERROR: ALTER TABLE: relation "pg_class" is a system catalog ERROR: ALTER TABLE: relation "pg_class" is a system catalog
-- try altering non-existent table, should fail -- try altering non-existent table, should fail
alter table foo alter column bar set not null; alter table non_existent alter column bar set not null;
ERROR: Relation "foo" does not exist ERROR: Relation "non_existent" does not exist
alter table foo alter column bar drop not null; alter table non_existent alter column bar drop not null;
ERROR: Relation "foo" does not exist ERROR: Relation "non_existent" does not exist
-- test setting columns to null and not null and vice versa -- test setting columns to null and not null and vice versa
-- test checking for null values and primary key -- test checking for null values and primary key
create table atacc1 (test int not null); create table atacc1 (test int not null);

View File

@ -478,8 +478,8 @@ alter table pg_class alter column relname drop not null;
alter table pg_class alter relname set not null; alter table pg_class alter relname set not null;
-- try altering non-existent table, should fail -- try altering non-existent table, should fail
alter table foo alter column bar set not null; alter table non_existent alter column bar set not null;
alter table foo alter column bar drop not null; alter table non_existent alter column bar drop not null;
-- test setting columns to null and not null and vice versa -- test setting columns to null and not null and vice versa
-- test checking for null values and primary key -- test checking for null values and primary key