Skip to content

Commit 5622983

Browse files
committed
only one type of return value
1 parent 653da8c commit 5622983

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dbcommands.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ pg_catalog.pg_get_functiondef(
641641
SELECT
642642
n.nspname AS "Schema",
643643
c.relname AS "Name",
644-
CASE c.relkind WHEN 'r' THEN 'table' WHEN 'v' THEN 'view' WHEN 'm' THEN 'materialized view' WHEN 'i' THEN 'index' WHEN 'S' THEN 'sequence' WHEN 's' THEN 'special' WHEN 'f' THEN 'foreign table' WHEN 'p' THEN 'table' WHEN 'I' THEN 'index' END as "Type",
644+
'foreign table' AS "Type",
645645
pg_catalog.pg_get_userbyid(c.relowner) AS "Owner",
646646
pg_catalog.pg_size_pretty(pg_catalog.pg_table_size(c.oid)) AS "Size",
647647
pg_catalog.obj_description(c.oid, 'pg_class') AS "Description"
@@ -661,7 +661,7 @@ ORDER BY 1, 2
661661
SELECT
662662
n.nspname AS "Schema",
663663
c.relname AS "Name",
664-
CASE c.relkind WHEN 'r' THEN 'table' WHEN 'v' THEN 'view' WHEN 'm' THEN 'materialized view' WHEN 'i' THEN 'index' WHEN 'S' THEN 'sequence' WHEN 's' THEN 'special' WHEN 'f' THEN 'foreign table' WHEN 'p' THEN 'table' WHEN 'I' THEN 'index' END as "Type",
664+
'foreign table' AS "Type",
665665
pg_catalog.pg_get_userbyid(c.relowner) AS "Owner"
666666
FROM
667667
pg_catalog.pg_class c

0 commit comments

Comments
 (0)