mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add pg_column_toast_chunk_id().
This function returns the chunk_id of an on-disk TOASTed value. If the value is un-TOASTed or not on-disk, it returns NULL. This is useful for identifying which values are actually TOASTed and for investigating "unexpected chunk number" errors. Bumps catversion. Author: Yugo Nagata Reviewed-by: Jian He Discussion: https://postgr.es/m/20230329105507.d764497456eeac1ca491b5bd%40sraoss.co.jp
This commit is contained in:
@ -28552,6 +28552,23 @@ postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="func_table_entry"><para role="func_signature">
|
||||
<indexterm>
|
||||
<primary>pg_column_toast_chunk_id</primary>
|
||||
</indexterm>
|
||||
<function>pg_column_toast_chunk_id</function> ( <type>"any"</type> )
|
||||
<returnvalue>oid</returnvalue>
|
||||
</para>
|
||||
<para>
|
||||
Shows the <structfield>chunk_id</structfield> of an on-disk
|
||||
<acronym>TOAST</acronym>ed value. Returns <literal>NULL</literal>
|
||||
if the value is un-<acronym>TOAST</acronym>ed or not on-disk. See
|
||||
<xref linkend="storage-toast"/> for more information about
|
||||
<acronym>TOAST</acronym>.
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="func_table_entry"><para role="func_signature">
|
||||
<indexterm>
|
||||
|
Reference in New Issue
Block a user