diff options
author | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-19 14:11:52 +0300 |
---|---|---|
committer | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-19 14:22:01 +0300 |
commit | 72b3cd51dc3fb9d16975d353ea82fd85701393cc (patch) | |
tree | 318141940b8bf6bdb37ad6154e745e2ebfe3613f /yql/essentials/tests/postgresql/patches/alter_table.sql.patch | |
parent | 223625eed56ec3e2808c010eac46dba1c9a64d13 (diff) | |
download | ydb-72b3cd51dc3fb9d16975d353ea82fd85701393cc.tar.gz |
YQL-19206 Move contrib/ydb/library/yql/tests/postgresql -> yql/essentials/tests/postgresql
commit_hash:46fdf59714b20cf2b61233a06e58365227d3c8b2
Diffstat (limited to 'yql/essentials/tests/postgresql/patches/alter_table.sql.patch')
-rw-r--r-- | yql/essentials/tests/postgresql/patches/alter_table.sql.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/yql/essentials/tests/postgresql/patches/alter_table.sql.patch b/yql/essentials/tests/postgresql/patches/alter_table.sql.patch new file mode 100644 index 0000000000..28e98d0a77 --- /dev/null +++ b/yql/essentials/tests/postgresql/patches/alter_table.sql.patch @@ -0,0 +1,73 @@ +--- alter_table.sql (40977c8f0a0a339864b620914542e2d90392919b) ++++ alter_table.sql (8a1083b9b852a7dbb540208bd92787ee92f311f7) +@@ -1730,48 +1730,59 @@ insert into alterlock values (1, 'foo'); + create table alterlock2 (f3 int primary key, f1 int); + insert into alterlock2 values (1, 1); + +-begin; alter table alterlock alter column f2 set statistics 150; ++begin; ++alter table alterlock alter column f2 set statistics 150; + select * from my_locks order by 1; + rollback; + +-begin; alter table alterlock cluster on alterlock_pkey; ++begin; ++alter table alterlock cluster on alterlock_pkey; + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock set without cluster; ++begin; ++alter table alterlock set without cluster; + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock set (fillfactor = 100); ++begin; ++alter table alterlock set (fillfactor = 100); + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock reset (fillfactor); ++begin; ++alter table alterlock reset (fillfactor); + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock set (toast.autovacuum_enabled = off); ++begin; ++alter table alterlock set (toast.autovacuum_enabled = off); + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock set (autovacuum_enabled = off); ++begin; ++alter table alterlock set (autovacuum_enabled = off); + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock alter column f2 set (n_distinct = 1); ++begin; ++alter table alterlock alter column f2 set (n_distinct = 1); + select * from my_locks order by 1; + rollback; + + -- test that mixing options with different lock levels works as expected +-begin; alter table alterlock set (autovacuum_enabled = off, fillfactor = 80); ++begin; ++alter table alterlock set (autovacuum_enabled = off, fillfactor = 80); + select * from my_locks order by 1; + commit; + +-begin; alter table alterlock alter column f2 set storage extended; ++begin; ++alter table alterlock alter column f2 set storage extended; + select * from my_locks order by 1; + rollback; + +-begin; alter table alterlock alter column f2 set default 'x'; ++begin; ++alter table alterlock alter column f2 set default 'x'; + select * from my_locks order by 1; + rollback; + |