toast_save_datum() ended with two copies of the same three steps, one each external on-disk TOAST pointer: allocate a datum, set its tag, then copy the contents from a varatt_external_oid or a varatt_external_oid8 into it. These steps are moved into a new helper function, toast_pointer_build(), which takes the tag and a pointer to the struct and derives everything else from the tag. For now, only two varatt_external_* exist for external on-disk TOAST pointers. Some more are under discussion, where this refactoring shows some benefits in the shape of less duplication. There should be no behavior change. Author: Nikhil Kumar Veldanda <veldanda.nikhilkumar17@gmail.com> Discussion: https://postgr.es/m/CAFAfj_FeJQZrKyVn7ur0aJx8iz8SR14NheVJNyc8JNoqtMX+og@mail.gmail.com
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/.