Accessing File-Based External Tables

A newer version of this documentation is available. Click here to view the most up-to-date release of the Greenplum 4.x documentation.

Accessing File-Based External Tables

To create an external table definition, you specify the format of your input files and the location of your external data sources. For information about input file formats, see Formatting Data Files.

Use one of the following protocols to access external table data sources. You cannot mix protocols in CREATE EXTERNAL TABLE statements.
gpfdist:
Points to a directory on the file host and serves external data files to all Greenplum Database segments in parallel.
gpfdists:
The secure version of gpfdist.
file:
Accesses external data files on a segment host that the Greenplum superuser (gpadmin) can access.
gphdfs:
Accesses files on a Hadoop Distributed File System (HDFS).

gpfdist and gpfdists require a one-time setup during table creation.