@@ -2384,6 +2384,132 @@ ORDER BY c.ordinal_position;
23842384 </table>
23852385 </sect1>
23862386
2387+ <sect1 id="infoschema-foreign-table-options">
2388+ <title><literal>foreign_table_options</literal></title>
2389+
2390+ <para>
2391+ The view <literal>foreign_table_options</literal> contains all the
2392+ options defined for foreign tables in the current database. Only
2393+ those foreign tables are shown that the current user has access to
2394+ (by way of being the owner or having some privilege).
2395+ </para>
2396+
2397+ <table>
2398+ <title><literal>foreign_table_options</literal> Columns</title>
2399+
2400+ <tgroup cols="3">
2401+ <thead>
2402+ <row>
2403+ <entry>Name</entry>
2404+ <entry>Data Type</entry>
2405+ <entry>Description</entry>
2406+ </row>
2407+ </thead>
2408+
2409+ <tbody>
2410+ <row>
2411+ <entry><literal>foreign_table_catalog</literal></entry>
2412+ <entry><type>sql_identifier</type></entry>
2413+ <entry>Name of the database that contains the foreign table (always the current database)</entry>
2414+ </row>
2415+
2416+ <row>
2417+ <entry><literal>foreign_table_schema</literal></entry>
2418+ <entry><type>sql_identifier</type></entry>
2419+ <entry>Name of the schema that contains the foreign table</entry>
2420+ </row>
2421+
2422+ <row>
2423+ <entry><literal>foreign_table_name</literal></entry>
2424+ <entry><type>sql_identifier</type></entry>
2425+ <entry>Name of the foreign table</entry>
2426+ </row>
2427+
2428+ <row>
2429+ <entry><literal>foreign_server_catalog</literal></entry>
2430+ <entry><type>sql_identifier</type></entry>
2431+ <entry>Name of the database that the foreign server is defined in (always the current database)</entry>
2432+ </row>
2433+
2434+ <row>
2435+ <entry><literal>foreign_server_name</literal></entry>
2436+ <entry><type>sql_identifier</type></entry>
2437+ <entry>Name of the foreign server</entry>
2438+ </row>
2439+
2440+ <row>
2441+ <entry><literal>option_name</literal></entry>
2442+ <entry><type>sql_identifier</type></entry>
2443+ <entry>Name of an option</entry>
2444+ </row>
2445+
2446+ <row>
2447+ <entry><literal>option_value</literal></entry>
2448+ <entry><type>character_data</type></entry>
2449+ <entry>Value of the option</entry>
2450+ </row>
2451+ </tbody>
2452+ </tgroup>
2453+ </table>
2454+ </sect1>
2455+
2456+ <sect1 id="infoschema-foreign-tables">
2457+ <title><literal>foreign_tables</literal></title>
2458+
2459+ <para>
2460+ The view <literal>foreign_tables</literal> contains all foreign
2461+ tables defined in the current database. Only those foreign
2462+ tables are shown that the current user has access to (by way of
2463+ being the owner or having some privilege).
2464+ </para>
2465+
2466+ <table>
2467+ <title><literal>foreign_tables</literal> Columns</title>
2468+
2469+ <tgroup cols="3">
2470+ <thead>
2471+ <row>
2472+ <entry>Name</entry>
2473+ <entry>Data Type</entry>
2474+ <entry>Description</entry>
2475+ </row>
2476+ </thead>
2477+
2478+ <tbody>
2479+ <row>
2480+ <entry><literal>foreign_table_catalog</literal></entry>
2481+ <entry><type>sql_identifier</type></entry>
2482+ <entry>Name of the database that the foreign table is defined in (always the current database)</entry>
2483+ </row>
2484+
2485+ <row>
2486+ <entry><literal>foreign_table_schema</literal></entry>
2487+ <entry><type>sql_identifier</type></entry>
2488+ <entry>Name of the schema that contains the foreign table</entry>
2489+ </row>
2490+
2491+ <row>
2492+ <entry><literal>foreign_table_name</literal></entry>
2493+ <entry><type>sql_identifier</type></entry>
2494+ <entry>Name of the foreign table</entry>
2495+ </row>
2496+
2497+ <row>
2498+ <entry><literal>foreign_server_catalog</literal></entry>
2499+ <entry><type>sql_identifier</type></entry>
2500+ <entry>Name of the database that the foreign server is defined in (always the current database)</entry>
2501+ </row>
2502+
2503+ <row>
2504+ <entry><literal>foreign_server_name</literal></entry>
2505+ <entry><type>sql_identifier</type></entry>
2506+ <entry>Name of the foreign server</entry>
2507+ </row>
2508+ </tbody>
2509+ </tgroup>
2510+ </table>
2511+ </sect1>
2512+
23872513 <sect1 id="infoschema-key-column-usage">
23882514 <title><literal>key_column_usage</literal></title>
23892515
@@ -4730,8 +4856,9 @@ ORDER BY c.ordinal_position;
47304856 <entry>
47314857 Type of the table: <literal>BASE TABLE</literal> for a
47324858 persistent base table (the normal table type),
4733- <literal>VIEW</literal> for a view, or <literal>LOCAL
4734- TEMPORARY</literal> for a temporary table
4859+ <literal>VIEW</literal> for a view, <literal>FOREIGN TABLE</literal>
4860+ for a foreign table, or
4861+ <literal>LOCAL TEMPORARY</literal> for a temporary table
47354862 </entry>
47364863 </row>
47374864
0 commit comments