CDB_QueryTables return tables with schema

This commit is contained in:
javi
2014-06-25 19:38:29 +02:00
parent 1815096a37
commit da9b9a640f
3 changed files with 26 additions and 11 deletions

View File

@@ -25,3 +25,9 @@ WITH inp AS ( select 'create table test (a int); insert into test values (1); se
WITH inp AS ( select 'WITH a AS (select * from pg_class) select * from a'::text as q )
SELECT q, CDB_QueryTables(q) from inp;
CREATE SCHEMA sc;
create table sc.test (a int);
insert into sc.test values (1);
WITH inp AS ( select 'select * from sc.test'::text as q )
SELECT q, CDB_QueryTables(q) from inp;