mirror of https://github.com/postgres/postgres
Hopefully, the additional logging will help avoid confusion that could otherwise result. Nathan Bossart, reviewed by Michael Paquier, Fabrízio Mello, and mepull/31/head^2
parent
ecc27d55f4
commit
ab6eaee884
@ -0,0 +1,76 @@ |
||||
Parsed test spec with 2 sessions |
||||
|
||||
starting permutation: lock vac_specified drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step vac_specified: VACUUM test1, test2; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
WARNING: skipping vacuum of "test2" --- relation no longer exists |
||||
step vac_specified: <... completed> |
||||
|
||||
starting permutation: lock vac_all drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step vac_all: VACUUM; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
step vac_all: <... completed> |
||||
|
||||
starting permutation: lock analyze_specified drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step analyze_specified: ANALYZE test1, test2; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
WARNING: skipping analyze of "test2" --- relation no longer exists |
||||
step analyze_specified: <... completed> |
||||
|
||||
starting permutation: lock analyze_all drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step analyze_all: ANALYZE; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
step analyze_all: <... completed> |
||||
|
||||
starting permutation: lock vac_analyze_specified drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step vac_analyze_specified: VACUUM ANALYZE test1, test2; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
WARNING: skipping vacuum of "test2" --- relation no longer exists |
||||
step vac_analyze_specified: <... completed> |
||||
|
||||
starting permutation: lock vac_analyze_all drop_and_commit |
||||
step lock: |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
|
||||
step vac_analyze_all: VACUUM ANALYZE; <waiting ...> |
||||
step drop_and_commit: |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
|
||||
step vac_analyze_all: <... completed> |
@ -0,0 +1,45 @@ |
||||
# Test for log messages emitted by VACUUM and ANALYZE when a specified |
||||
# relation is concurrently dropped. |
||||
# |
||||
# This also verifies that log messages are not emitted for concurrently |
||||
# dropped relations that were not specified in the VACUUM or ANALYZE |
||||
# command. |
||||
|
||||
setup |
||||
{ |
||||
CREATE TABLE test1 (a INT); |
||||
CREATE TABLE test2 (a INT); |
||||
} |
||||
|
||||
teardown |
||||
{ |
||||
DROP TABLE IF EXISTS test1; |
||||
DROP TABLE IF EXISTS test2; |
||||
} |
||||
|
||||
session "s1" |
||||
step "lock" |
||||
{ |
||||
BEGIN; |
||||
LOCK test1 IN SHARE MODE; |
||||
} |
||||
step "drop_and_commit" |
||||
{ |
||||
DROP TABLE test2; |
||||
COMMIT; |
||||
} |
||||
|
||||
session "s2" |
||||
step "vac_specified" { VACUUM test1, test2; } |
||||
step "vac_all" { VACUUM; } |
||||
step "analyze_specified" { ANALYZE test1, test2; } |
||||
step "analyze_all" { ANALYZE; } |
||||
step "vac_analyze_specified" { VACUUM ANALYZE test1, test2; } |
||||
step "vac_analyze_all" { VACUUM ANALYZE; } |
||||
|
||||
permutation "lock" "vac_specified" "drop_and_commit" |
||||
permutation "lock" "vac_all" "drop_and_commit" |
||||
permutation "lock" "analyze_specified" "drop_and_commit" |
||||
permutation "lock" "analyze_all" "drop_and_commit" |
||||
permutation "lock" "vac_analyze_specified" "drop_and_commit" |
||||
permutation "lock" "vac_analyze_all" "drop_and_commit" |
Loading…
Reference in new issue