]> granicus.if.org Git - postgresql/commitdiff
Correct representation of foreign tables in information schema
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Aug 2017 15:03:33 +0000 (11:03 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Aug 2017 15:03:33 +0000 (11:03 -0400)
tables.table_type is supposed to be 'FOREIGN' rather than 'FOREIGN
TABLE' according to the SQL standard.

doc/src/sgml/information_schema.sgml
src/backend/catalog/information_schema.sql

index b85849b25885f6ee2259d6f8a840a35b26979e35..e07ff35bca0f65d257edf8e4c82a5fdd4c17bee9 100644 (file)
@@ -5456,7 +5456,7 @@ ORDER BY c.ordinal_position;
       <entry>
        Type of the table: <literal>BASE TABLE</literal> for a
        persistent base table (the normal table type),
-       <literal>VIEW</literal> for a view, <literal>FOREIGN TABLE</literal>
+       <literal>VIEW</literal> for a view, <literal>FOREIGN</literal>
        for a foreign table, or
        <literal>LOCAL TEMPORARY</literal> for a temporary table
       </entry>
index 5398271ad01a26b616e5443be6fd04d994138cf4..236f6be37e846f5394527ffc70f9cbabe574c2c5 100644 (file)
@@ -1914,7 +1914,7 @@ CREATE VIEW tables AS
              CASE WHEN nc.oid = pg_my_temp_schema() THEN 'LOCAL TEMPORARY'
                   WHEN c.relkind IN ('r', 'p') THEN 'BASE TABLE'
                   WHEN c.relkind = 'v' THEN 'VIEW'
-                  WHEN c.relkind = 'f' THEN 'FOREIGN TABLE'
+                  WHEN c.relkind = 'f' THEN 'FOREIGN'
                   ELSE null END
              AS character_data) AS table_type,