Correct representation of foreign tables in information schema
tables.table_type is supposed to be 'FOREIGN' rather than 'FOREIGN TABLE' according to the SQL standard.
This commit is contained in:
parent
3cda10f41b
commit
9b5140fb50
@ -5456,7 +5456,7 @@ ORDER BY c.ordinal_position;
|
|||||||
<entry>
|
<entry>
|
||||||
Type of the table: <literal>BASE TABLE</literal> for a
|
Type of the table: <literal>BASE TABLE</literal> for a
|
||||||
persistent base table (the normal table type),
|
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
|
for a foreign table, or
|
||||||
<literal>LOCAL TEMPORARY</literal> for a temporary table
|
<literal>LOCAL TEMPORARY</literal> for a temporary table
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -1914,7 +1914,7 @@ CREATE VIEW tables AS
|
|||||||
CASE WHEN nc.oid = pg_my_temp_schema() THEN 'LOCAL TEMPORARY'
|
CASE WHEN nc.oid = pg_my_temp_schema() THEN 'LOCAL TEMPORARY'
|
||||||
WHEN c.relkind IN ('r', 'p') THEN 'BASE TABLE'
|
WHEN c.relkind IN ('r', 'p') THEN 'BASE TABLE'
|
||||||
WHEN c.relkind = 'v' THEN 'VIEW'
|
WHEN c.relkind = 'v' THEN 'VIEW'
|
||||||
WHEN c.relkind = 'f' THEN 'FOREIGN TABLE'
|
WHEN c.relkind = 'f' THEN 'FOREIGN'
|
||||||
ELSE null END
|
ELSE null END
|
||||||
AS character_data) AS table_type,
|
AS character_data) AS table_type,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user