mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +03:00
Remove warnings for operations that have no effect when executed repeatedly.
This commit is contained in:
@@ -1209,8 +1209,7 @@ select oid > 0, * from altinhoid;
|
||||
(1 row)
|
||||
|
||||
alter table altwithoid set without oids;
|
||||
alter table altinhoid set without oids; -- fails
|
||||
NOTICE: table "altinhoid" is already WITHOUT OIDS
|
||||
alter table altinhoid set without oids;
|
||||
select oid > 0, * from altwithoid; -- fails
|
||||
ERROR: attribute "oid" not found
|
||||
select oid > 0, * from altinhoid; -- fails
|
||||
|
||||
@@ -205,13 +205,9 @@ alter domain dnotnulltest set not null; -- fails
|
||||
ERROR: relation "domnotnull" attribute "col2" contains NULL values
|
||||
update domnotnull set col2 = 6;
|
||||
alter domain dnotnulltest set not null;
|
||||
alter domain dnotnulltest set not null; -- fails
|
||||
NOTICE: "dnotnulltest" is already set to NOT NULL
|
||||
update domnotnull set col1 = null; -- fails
|
||||
ERROR: domain dnotnulltest does not allow NULL values
|
||||
alter domain dnotnulltest drop not null;
|
||||
alter domain dnotnulltest drop not null; -- fails
|
||||
NOTICE: "dnotnulltest" is already set to NULL
|
||||
update domnotnull set col1 = null;
|
||||
drop domain dnotnulltest cascade;
|
||||
NOTICE: drop cascades to table domnotnull column col2
|
||||
|
||||
@@ -11,7 +11,6 @@ CREATE GROUP regressgroup1;
|
||||
CREATE GROUP regressgroup2 WITH USER regressuser1, regressuser2;
|
||||
ALTER GROUP regressgroup1 ADD USER regressuser4;
|
||||
ALTER GROUP regressgroup2 ADD USER regressuser2; -- duplicate
|
||||
WARNING: user "regressuser2" is already in group "regressgroup2"
|
||||
ALTER GROUP regressgroup2 DROP USER regressuser2;
|
||||
ALTER GROUP regressgroup2 ADD USER regressuser4;
|
||||
-- test owner privileges
|
||||
|
||||
@@ -870,7 +870,7 @@ select oid > 0, * from altwithoid;
|
||||
select oid > 0, * from altinhoid;
|
||||
|
||||
alter table altwithoid set without oids;
|
||||
alter table altinhoid set without oids; -- fails
|
||||
alter table altinhoid set without oids;
|
||||
|
||||
select oid > 0, * from altwithoid; -- fails
|
||||
select oid > 0, * from altinhoid; -- fails
|
||||
|
||||
@@ -174,12 +174,10 @@ alter domain dnotnulltest set not null; -- fails
|
||||
update domnotnull set col2 = 6;
|
||||
|
||||
alter domain dnotnulltest set not null;
|
||||
alter domain dnotnulltest set not null; -- fails
|
||||
|
||||
update domnotnull set col1 = null; -- fails
|
||||
|
||||
alter domain dnotnulltest drop not null;
|
||||
alter domain dnotnulltest drop not null; -- fails
|
||||
|
||||
update domnotnull set col1 = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user