测试模块 是一个扩展和/或一组SQL测试,其主要或完全目的是测试PostgreSQL和/或作为示例代码。
(从PostgreSQL 9.5开始)测试模块位于源代码目录src/test/modules/中。它们不构成普通PostgreSQL发行版或包的一部分,而是用于直接使用源代码时。
在PostgreSQL 9.5之前,一些测试模块被包含为contrib模块。
可用的测试模块
截至PostgreSQL 13,存在以下模块
- brin
- commit_ts
- dummy_index_am
- dummy_seclabel
- snapshot_too_old
- test_bloomfilter
- test_ddl_deparse
- test_extensions
- test_ginpostinglist
- test_integerset
- test_misc
- test_parser
- test_pg_dump
- test_predtest
- test_rbtree
- test_rls_hooks
- test_shm_mq
- unsafe_tests
- worker_spi
变更历史
- PostgreSQL 13
- 添加了
dummy_index_am模块(提交640c1986) - 添加了
test_ginpostinglist模块(提交bde7493d)
- 添加了
- PostgreSQL 12
- 添加了
test_integerset模块(提交df816f6a) - 添加了
test_misc模块(提交121e3cee) - 添加了
unsafe_tests模块(提交c91504b9)
- 添加了
- PostgreSQL 11
- 添加了
test_bloomfilter模块(提交51bc2717) - 添加了
test_predtest模块(提交44468f49) - 添加了
test_rbtree模块(提交610bbdd8)
- 添加了
- PostgreSQL 9.6
- 添加了
snapshot_too_old模块(提交848ef42b) - 添加了
test_extensions模块(提交b67aaf21) - 添加了
test_pg_dump模块(提交6bd356c3)
- 添加了
- PostgreSQL 9.5
参考资料
- 源代码 README: README
