From 84cac16d1c780d5ea927e6ea315d4887f7c314a5 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Wed, 6 Apr 2016 22:05:00 +0200 Subject: [PATCH] Temporary fix --- scripts-available/CDB_Overviews.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts-available/CDB_Overviews.sql b/scripts-available/CDB_Overviews.sql index ec26813..47ecb86 100644 --- a/scripts-available/CDB_Overviews.sql +++ b/scripts-available/CDB_Overviews.sql @@ -142,9 +142,12 @@ AS $$ schema_name TEXT; table_name TEXT; BEGIN - -- TODO: review implementation of CDB_UserTables an suitability for this SELECT * FROM _cdb_split_table_name(reloid) INTO schema_name, table_name; - RETURN QUERY SELECT + -- TODO: replace use of CDB_UserTables by obtaining the user tables + -- in a specific schema + -- Meanwhile we'll use DISTINCT here to avoid picking multiple tables + -- from different schemas + RETURN QUERY SELECT DISTINCT reloid AS base_table, _CDB_OverviewTableZ(cdb_usertables) AS z, ('"' || schema_name|| '"."' ||cdb_usertables || '"')::regclass AS overview_table