composite_type_mismatch
如果一个复合值的行类型在该值创建后发生了不兼容的修改,读取该值通常会使 PostgreSQL 报错。这个参数控制此行为。默认值 error 会报告错误并中止当前事务。设置为 warn 时,系统会就不匹配情况发出警告,但允许继续执行。设置为 disabled 时,完全不执行此项检查。 error 以外的设置可能导致崩溃、错误结果或其他严重问题。只有超级用户和具有相应 SET 权限的用户才能修改此设置。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- boot val
- error
- carried from
- 未知
- carry reason
- 未知
- category
- Developer Options
- category zh
- 开发者选项
- context
- superuser
- doc same as
- 未知
- documented
- true
- enumvals
- error, warn, disabled
- extra desc
- 未知
- human
- error
- lang
- en
- max val
- 未知
- metadata version
- 18.7
- min val
- 未知
- minimum minor
- 18.7
- name
- composite_type_mismatch
- runtime verified
- false
- setting
- 未知
- short desc
- Sets how version mismatches of composite values are handled.
- source
- verified-release-source-and-manual
- source evidence
- map[file:src/backend/utils/misc/guc_tables.c release:18.7 sha256:a234f611380b4ac8c45a685257f138cb4fa08e5fc3cdb59f686b90b7b858fa7c]
- unit
- 未知
- vartype
- enum
版本定义 PG 18
如果一个复合值的行类型在该值创建后发生了不兼容的修改,读取该值通常会使 PostgreSQL 报错。这个参数控制此行为。默认值 error 会报告错误并中止当前事务。设置为 warn 时,系统会就不匹配情况发出警告,但允许继续执行。设置为 disabled 时,完全不执行此项检查。
error 以外的设置可能导致崩溃、错误结果或其他严重问题。只有超级用户和具有相应 SET 权限的用户才能修改此设置。
比较版本
完整来源事实
doc html
<p>
Reading a composite value whose row type was altered in an
incompatible way after the value was created normally causes
<span class="productname">PostgreSQL</span> to report an error.
This parameter controls that behavior. With the default,
<code class="literal">error</code>, an error is reported, aborting the current
transaction. With <code class="literal">warn</code>, the system warns about
mismatches but allows execution to continue. With
<code class="literal">disabled</code>, the check is not performed at all.
</p><p>
Settings other than <code class="literal">error</code> may <span class="emphasis"><em>cause
crashes, wrong results, or other serious problems</em></span>.
Only superusers and users with the appropriate <code class="literal">SET</code>
privilege can change this setting.
</p>documentation revision
{"inputs":[{"file":"runtime-config-developer.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a3f6a107ed6ba4edaf6df03e52f4a469bd09350d545e4ff419e62844025ec1cf","version":"18.7"},{"file":"runtime-config-developer.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"e7e22aa5738a1d376b84af1adca796c5e14746266733f925eb50c3ef86a50655","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}来源引用
定义来源
center · PostgreSQL 18 · docs-refresh-20261113:release-source
正文语言: zh-Hans · docs-refresh-20261113:release-source