Skip to content

Commit

Permalink
only one type of return value
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuku committed Nov 6, 2023
1 parent 653da8c commit 5622983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbcommands.sql
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ pg_catalog.pg_get_functiondef(
SELECT
n.nspname AS "Schema",
c.relname AS "Name",
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",
'foreign table' AS "Type",
pg_catalog.pg_get_userbyid(c.relowner) AS "Owner",
pg_catalog.pg_size_pretty(pg_catalog.pg_table_size(c.oid)) AS "Size",
pg_catalog.obj_description(c.oid, 'pg_class') AS "Description"
Expand All @@ -661,7 +661,7 @@ ORDER BY 1, 2
SELECT
n.nspname AS "Schema",
c.relname AS "Name",
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",
'foreign table' AS "Type",
pg_catalog.pg_get_userbyid(c.relowner) AS "Owner"
FROM
pg_catalog.pg_class c
Expand Down

0 comments on commit 5622983

Please sign in to comment.