Ported to PostgreSQL 9.2+ Foreign Data Wrapper API