diff options
author | Simon Riggs | 2011-07-04 10:09:51 +0000 |
---|---|---|
committer | Simon Riggs | 2011-07-04 10:09:51 +0000 |
commit | f563afd433e07a2eb7db614005141f21613d4d61 (patch) | |
tree | ab8e4f1e79a36ed36c8afb8f517bcb9927805195 /src/test | |
parent | 2c3d9db56d5d49bdc777b174982251c01348e3d8 (diff) |
Alter test results to comply with new ALTER TABLE behaviour.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/regress/expected/alter_table.out | 72 | ||||
-rw-r--r-- | src/test/regress/sql/alter_table.sql | 2 |
2 files changed, 35 insertions, 39 deletions
diff --git a/src/test/regress/expected/alter_table.out b/src/test/regress/expected/alter_table.out index b78b1510efb..005a88b084b 100644 --- a/src/test/regress/expected/alter_table.out +++ b/src/test/regress/expected/alter_table.out @@ -1669,90 +1669,88 @@ and c.relname != 'my_locks' group by c.relname; create table alterlock (f1 int primary key, f2 text); NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "alterlock_pkey" for table "alterlock" --- share update exclusive begin; alter table alterlock alter column f2 set statistics 150; select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock (1 row) rollback; begin; alter table alterlock cluster on alterlock_pkey; select * from my_locks order by 1; - relname | max_lockmode -----------------+-------------------------- - alterlock | ShareUpdateExclusiveLock - alterlock_pkey | ShareUpdateExclusiveLock + relname | max_lockmode +----------------+--------------------- + alterlock | AccessExclusiveLock + alterlock_pkey | AccessExclusiveLock (2 rows) commit; begin; alter table alterlock set without cluster; select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock (1 row) commit; begin; alter table alterlock set (fillfactor = 100); select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock - pg_toast | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock + pg_toast | AccessExclusiveLock (2 rows) commit; begin; alter table alterlock reset (fillfactor); select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock - pg_toast | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock + pg_toast | AccessExclusiveLock (2 rows) commit; begin; alter table alterlock set (toast.autovacuum_enabled = off); select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock - pg_toast | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock + pg_toast | AccessExclusiveLock (2 rows) commit; begin; alter table alterlock set (autovacuum_enabled = off); select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock - pg_toast | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock + pg_toast | AccessExclusiveLock (2 rows) commit; begin; alter table alterlock alter column f2 set (n_distinct = 1); select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock (1 row) rollback; begin; alter table alterlock alter column f2 set storage extended; select * from my_locks order by 1; - relname | max_lockmode ------------+-------------------------- - alterlock | ShareUpdateExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock (1 row) rollback; --- share row exclusive begin; alter table alterlock alter column f2 set default 'x'; select * from my_locks order by 1; - relname | max_lockmode ------------+----------------------- - alterlock | ShareRowExclusiveLock + relname | max_lockmode +-----------+--------------------- + alterlock | AccessExclusiveLock (1 row) rollback; diff --git a/src/test/regress/sql/alter_table.sql b/src/test/regress/sql/alter_table.sql index bb2c27718a0..95e898c0eac 100644 --- a/src/test/regress/sql/alter_table.sql +++ b/src/test/regress/sql/alter_table.sql @@ -1221,7 +1221,6 @@ group by c.relname; create table alterlock (f1 int primary key, f2 text); --- share update exclusive begin; alter table alterlock alter column f2 set statistics 150; select * from my_locks order by 1; rollback; @@ -1258,7 +1257,6 @@ begin; alter table alterlock alter column f2 set storage extended; select * from my_locks order by 1; rollback; --- share row exclusive begin; alter table alterlock alter column f2 set default 'x'; select * from my_locks order by 1; rollback; |