Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save juelvaldivia/5de041d58b584212c62a5717a812ba04 to your computer and use it in GitHub Desktop.
Save juelvaldivia/5de041d58b584212c62a5717a812ba04 to your computer and use it in GitHub Desktop.
SELECT
t1.TABLE_NAME AS tabla_nombre,
PG_CATALOG.OBJ_DESCRIPTION(t2.OID, 'pg_class') AS tabla_descripcion
FROM
INFORMATION_SCHEMA.TABLES t1
INNER JOIN PG_CLASS t2 ON (t2.relname = t1.table_name)
WHERE
t1.TABLE_SCHEMA='public'
ORDER BY
t1.TABLE_NAME;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment