Compare commits

...

1 Commits

Author SHA1 Message Date
Javier Goizueta
2c687e0823 Fix the CDB_TableMetadata_Text view
The metadata table wasn't properly joined to the catalog.
This should fix #308
The public scheme has been removed from the metadata table reference;
this should be further checked because the table doesn't seem to be in the public schema in production
2017-09-13 18:01:35 +02:00

View File

@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS
CREATE OR REPLACE VIEW public.CDB_TableMetadata_Text AS CREATE OR REPLACE VIEW public.CDB_TableMetadata_Text AS
SELECT FORMAT('%I.%I', n.nspname::text, c.relname::text) tabname, updated_at SELECT FORMAT('%I.%I', n.nspname::text, c.relname::text) tabname, updated_at
FROM public.CDB_TableMetadata, pg_catalog.pg_class c FROM CDB_TableMetadata m JOIN pg_catalog.pg_class c ON m.tabname::oid = c.oid
LEFT JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid; LEFT JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid;
-- No one can see this -- No one can see this