Skip to content

dir_fdw

foreign-data wrapper for readdir

dir_fdw · foreign-data wrapper for readdir

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101337dir_fdwdir_fdw1.0FDWMITC

Usage

Sources:

dir_fdw — foreign-data wrapper for readdir. Use it when PostgreSQL must access the corresponding external data source through a foreign-data interface. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION dir_fdw;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • dir_fdw_handler() is an extension function and returns fdw_handler.
  • dir_fdw_validator(text[], oid) is an extension function and returns void.
  • dir_fdw is an extension-defined foreign data wrapper.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader