Skip to content

dc_fdw

Historical foreign data wrapper for document collections stored on local disk.

dc_fdw · Historical foreign data wrapper for document collections stored on local disk.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101875dc_fdwdc_fdw1.0FDWC

PostgreSQL · 9.1, 9.2, 9.3

Usage

Sources:

dc_fdw Historical foreign data wrapper for document collections stored on local disk.

Enablement

Install the files for the intended server, then create dc_fdw in the target database:

CREATE EXTENSION dc_fdw;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

CREATE SERVER dc_server
  FOREIGN DATA WRAPPER dc_fdw;

CREATE FOREIGN TABLE documents (id integer, content text)
SERVER dc_server
OPTIONS (
  data_dir '/srv/documents',
  index_dir '/srv/documents-index',
  index_method 'SPIM',
  buffer_size '10',
  id_col 'id',
  text_col 'content'
);

SELECT id, content FROM documents LIMIT 10;

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
dc_fdw_handlerFUNCTIONCallable function from the reviewed install surface.
dc_fdw_validatorFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The verified PostgreSQL-major evidence covers 9.1, 9.2, 9.3; do not infer unlisted majors.
  • Catalog lifecycle is abandoned; test upgrades, dump/restore, and server compatibility before production use.

Table reader