debug_discard_caches
When set to 1, each system catalog cache entry is invalidated at the first possible opportunity, whether or not anything that would render it invalid really occurred. Caching of system catalogs is effectively disabled as a result, so the server will run extremely slowly. Higher values run the cache invalidation recursively, which is even slower and only useful for testing the caching logic itself. The default value of 0 selects normal catalog caching behavior. This parameter can be very helpful when trying to trigger hard-to-reproduce bugs involving concurrent catalog changes, but it is otherwise rarely needed. See the source code files inval.c and pg_config_manual.h for details. This parameter is supported when DISCARD_CACHES_ENABLED was defined at compile time (which happens automatically when using the configure option --enable-cassert). In production builds, its value will always be 0 and attempts to set it to another value will raise an error.
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
此版本暂无所选语言的定义,以下显示原始英文内容。
- boot val
- 0
- category
- Developer Options
- context
- superuser
- documented
- true
- enumvals
- 未知
- extra desc
- 0 means use normal caching behavior.
- lang
- en
- max val
- 0
- metadata version
- 18
- min val
- 0
- name
- debug_discard_caches
- short desc
- Aggressively flush system caches for debugging purposes.
- source
- pg-settings-source-snapshot
- unit
- 未知
- vartype
- integer
版本定义 PG 18
When set to 1, each system catalog cache entry is invalidated at the first possible opportunity, whether or not anything that would render it invalid really occurred. Caching of system catalogs is effectively disabled as a result, so the server will run extremely slowly. Higher values run the cache invalidation recursively, which is even slower and only useful for testing the caching logic itself. The default value of 0 selects normal catalog caching behavior. This parameter can be very helpful when trying to trigger hard-to-reproduce bugs involving concurrent catalog changes, but it is otherwise rarely needed. See the source code files inval.c and pg_config_manual.h for details. This parameter is supported when DISCARD_CACHES_ENABLED was defined at compile time (which happens automatically when using the configure option --enable-cassert). In production builds, its value will always be 0 and attempts to set it to another value will raise an error.
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:c6618266a4ec8995b13afa049ced23a4f99414e6e7565d059b06672ff6614c20
正文语言: en · english-manuals:c6618266a4ec8995b13afa049ced23a4f99414e6e7565d059b06672ff6614c20