13

This explains how to create a foreign data wrapper.

So how to list all the existing foreign data wrappers ?

3 Answers 3

12

Many FDWs are listed in the Postgres Wiki:

https://wiki.postgresql.org/wiki/Foreign_data_wrappers

psql has useful commands as well to know which FDWs are defined, e.g. \dew[+]:

http://www.postgresql.org/docs/current/static/app-psql.html

Sign up to request clarification or add additional context in comments.

2 Comments

This is very useful. Is there a way to list the foreign tables and servers in fdw context.
@Viraj: presumably. Use psql -E and \dew+ to see the precise queries that target the catalog, and how they're stored in it.
6

Just \det, or \det[+] for more details.

See official documentation here.

Comments

5

SELECT fdwname FROM pg_foreign_data_wrapper;

see https://www.postgresql.org/docs/current/catalog-pg-foreign-data-wrapper.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.