postgresql_16:8.8.2 Foreign Data Wrapper Callback Routines
PostgreSQL 16 > Internals > Writing a Foreign Data Wrapper > Foreign Data Wrapper Callback Routines
The FDW handler function returns a palloc'd FdwRoutine struct containing pointers to the callback functions described below. The scan-related functions are required, the rest are optional.
The FdwRoutine struct type is declared in src/include/foreign/fdwapi.h, which see for additional details.
Subsections
- postgresql_16:8.8.2.1 FDW Routines for Scanning Foreign Tables
- postgresql_16:8.8.2.2 FDW Routines for Scanning Foreign Joins
- postgresql_16:8.8.2.3 FDW Routines for Planning Post-Scan/Join Processing
- postgresql_16:8.8.2.4 FDW Routines for Updating Foreign Tables
- postgresql_16:8.8.2.5 FDW Routines for
TRUNCATE - postgresql_16:8.8.2.6 FDW Routines for Row Locking
- postgresql_16:8.8.2.7 FDW Routines for
EXPLAIN - postgresql_16:8.8.2.8 FDW Routines for
ANALYZE - postgresql_16:8.8.2.9 FDW Routines for
IMPORT FOREIGN SCHEMA - postgresql_16:8.8.2.10 FDW Routines for Parallel Execution
- postgresql_16:8.8.2.11 FDW Routines for Asynchronous Execution
- postgresql_16:8.8.2.12 FDW Routines for Reparameterization of Paths