mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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:
@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user