Overview of postgres_ffi
mainThe postgres_ffi module provides utilities for working with PostgreSQL on-disk file formats. It consists of Rust structs auto-generated from PostgreSQL header files via bindgen, along with Rust functions designed to read and manipulate these formats.
Important Constraints:
- Non-Portability: The PostgreSQL on-disk file format is not portable across different CPU architectures or operating systems.
- Version Sensitivity: The format is subject to change with each major PostgreSQL version. This module provides version-specific support for PostgreSQL v14, v15, and v16.
- Module Structure: Version-specific bindings are organized into
postgres_ffi::v14,postgres_ffi::v15, andpostgres_ffi::v16. Version-independent code is exported into the top-levelpostgres_ffimodule.