Add pg_column_toast_chunk_id().
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +17 −0 |
| src/backend/utils/adt/varlena.c | modified | +41 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +3 −0 |
| src/test/regress/expected/misc_functions.out | modified | +16 −0 |
| src/test/regress/sql/misc_functions.sql | modified | +12 −0 |
Documentation touched
Discussion
- pg_column_toast_chunk_id: a function to get a chunk ID of a TOASTed value 26 messages · 2023-03-29 → 2024-03-18