This commit adds a new SQL function able to set the type of a chunk_id attribute for a TOAST table across binary upgrades. The value is set when the creation of a TOAST table is required across upgrades, in the same fashion as the TOAST relation's oid and relfilenode. Note that this piece currently works only with a TOAST table's chunk_id set at OIDOID, because it is currently the only type of on-disk external TOAST pointer supported. This change is required for a follow-up feature that aims to introduce support for 8-byte OIDs in external TOAST pointers. Taking care of this issue separately is less code churn for the next changes, and perhaps some of the surrounding discussions with support for different types of external on-disk TOAST pointers will find this new facility useful. Bump catalog version. Author: Michael Paquier <michael@paquier.xyz> Reviewed-by: Greg Burd <greg@burd.me> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp> Discussion: https://postgr.es/m/af19kUjwjhaoUTLn@paquier.xyz
PostgreSQL Database Management System
This directory contains the source code distribution of the PostgreSQL database management system.
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
Copyright and license information can be found in the file COPYRIGHT.
General documentation about this version of PostgreSQL can be found at https://www.postgresql.org/docs/devel/. In particular, information about building PostgreSQL from the source code can be found at https://www.postgresql.org/docs/devel/installation.html.
The latest version of this software, and related software, may be obtained at https://www.postgresql.org/download/. For more information look at our web site located at https://www.postgresql.org/.