How to use PostgreSQL Foreign Data Wrapper to join 2 different postgresql databases -



How to use PostgreSQL Foreign Data Wrapper to join 2 different postgresql databases -

can provide illustration (with various sql statements involved) on how utilize foreign info wrappers in postgresql enable table postgresql database joined table postgresql database b?

it unclear docs grade fdw functionality available in pgsql 9.0 versus 9.1. docs not have examples shows how bring together between 2 different postgresql databases (with qualifier push-down) using fdw.

http://www.postgresql.org/docs/9.0/static/sql-createforeigndatawrapper.html

http://www.postgresql.org/docs/9.1/static/ddl-foreign-data.html

http://www.depesz.com/index.php/2011/03/14/waiting-for-9-1-foreign-data-wrapper/

you manipulate table. per depesz' post:

create foreign table passwd ( username text, pass text, uid int4, gid int4, gecos text, home text, shell text ) server file_server options (format 'text', filename '/etc/passwd', delimiter ':', null ''); select * passwd;

the docs have no examples of joining tables reason: it's plain old sql...

the bring together push-down subject of gsoc:

http://wiki.postgresql.org/wiki/enhancing_fdw_functionality_for_postgresql_gsoc2011 http://nine-chapters.com/?p=5

postgresql

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -