Foreign data wrappers

From PostgreSQL wiki

Revision as of 05:49, 21 September 2011 by Dfetter (Talk | contribs)

Jump to: navigation, search


Foreign Data Wrappers

In 2003, a new extension called SQL/MED ( "SQL Management of External Data" ) was added to the SQL standard. It is a standardized way of handling access to remote objects in SQL databases. In 2011, PostgreSQL 9.1 was released with a great support of this standard.

In a nutshell, you can now use various Foreign Data Wrappers (FDW) to connect a PostgreSQL Server to remote data stores. This page is an incomplete list of the Wrappers available right now. Another fdw list can be found at the PGXN website :

Please keep in mind that most of these wrappers are not officially supported by the PostgreSQL Global Development Group (PGDG) and that some of these projects are still in Beta version. Use Carefully !

SQL Databases Wrappers

oracle_fdw :

mysql_fdw : This extension implements a Foreign Data Wrapper for MySQL. It is supported on PostgreSQL 9.1 and above.

odbc_fdw is wrapper for databases with an ODBC driver, including Oracle, DB2, Microsoft SQL Server, Sybase, Pervasive SQL, IBM Lotus Domino, MySQL, PostgreSQL and desktop database products such as FileMaker and Microsoft Access :

NoSQL Databases Wrappers

couchdb_fdw is a wrapper for CouchDB

redis_fdw is a wrapper for Redis

File Wrappers

file_fdw is a CSV Files wrapper. It is a delivered as an official extension of PostgreSQL 9.1

file_text_array_fdw is another CSV wrapper :


twitter_fdw is a wrapper which fetches text messages from Twitter over the Internet and returns as a table :

ldap_fdw allows your PostgreSQL server to query an LDAP server and retrieve data from some pre-configured Organizational Unit

s3_fdw reads files located in Amazon S3

Personal tools