2015-06-24 22:01:43 +08:00
|
|
|
\set ECHO none
|
2014-06-26 01:38:29 +08:00
|
|
|
SELECT * FROM geometry_columns|{pg_catalog.pg_attribute,pg_catalog.pg_class,pg_catalog.pg_namespace,pg_catalog.pg_type}
|
|
|
|
SELECT a.attname FROM pg_class c JOIN pg_attribute a on (a.attrelid = c.oid)|{pg_catalog.pg_attribute,pg_catalog.pg_class}
|
2014-05-06 00:48:48 +08:00
|
|
|
CREATE table "my'tab;le" as select 1|{}
|
2014-06-26 01:38:29 +08:00
|
|
|
SELECT a.oid, b.oid FROM pg_class a, pg_class b|{pg_catalog.pg_class}
|
2014-05-06 00:48:48 +08:00
|
|
|
SELECT 1 as col1; select 2 as col2|{}
|
|
|
|
WARNING: CDB_QueryTables cannot explain query: select 1 from nonexistant (42P01: relation "nonexistant" does not exist)
|
2015-06-24 22:01:43 +08:00
|
|
|
CONTEXT: PL/pgSQL function cdb_querytables(text) line 3 at RETURN
|
2014-05-06 00:48:48 +08:00
|
|
|
ERROR: relation "nonexistant" does not exist
|
2015-06-24 22:01:43 +08:00
|
|
|
CONTEXT: PL/pgSQL function cdb_querytables(text) line 3 at RETURN
|
2014-06-26 01:38:29 +08:00
|
|
|
begin; select * from pg_class; commit;|{pg_catalog.pg_class}
|
2014-05-06 00:48:48 +08:00
|
|
|
WARNING: CDB_QueryTables cannot explain query: select * from test (42P01: relation "test" does not exist)
|
2015-06-24 22:01:43 +08:00
|
|
|
CONTEXT: PL/pgSQL function cdb_querytables(text) line 3 at RETURN
|
2014-05-06 00:48:48 +08:00
|
|
|
ERROR: relation "test" does not exist
|
2015-06-24 22:01:43 +08:00
|
|
|
CONTEXT: PL/pgSQL function cdb_querytables(text) line 3 at RETURN
|
2014-06-26 01:38:29 +08:00
|
|
|
WITH a AS (select * from pg_class) select * from a|{pg_catalog.pg_class}
|
|
|
|
CREATE SCHEMA
|
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 1
|
|
|
|
select * from sc.test|{sc.test}
|
2015-02-12 17:57:12 +08:00
|
|
|
SELECT
|
|
|
|
* FROM geometry_columns|{pg_catalog.pg_attribute,pg_catalog.pg_class,pg_catalog.pg_namespace,pg_catalog.pg_type}
|