["set search_path to _global,public","0E0","data"] ["select count(*) from pg_tables where tablename = '_general' and schemaname = '_global'",[["1"]],"data"] ["select version from _global._general limit 1",[["0.009"]],"data"] ["set lc_messages to \"C\";","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["set search_path to tester,public","0E0","data"] [" select id from _roles where name = 'Admin' and password = '5f4dcc3b5aa765d61d8327deb882cf99' limit 1; ",[["1"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.relname as name, obj_description(c.oid, 'pg_class') as description from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' order by c.oid",[],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select name from _views ",[],"data"] ["truncate _views;","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select name, description from _views order by id ",[],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select count(*) from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' ",[["0"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'A' limit 1 ",[],"data"] [" create table \"A\" (id serial primary key , \"title\" text ); grant select on table \"A\" to anonymous; comment on table \"A\" is 'A'; comment on column \"A\".id is 'ID';comment on column \"A\".\"title\" is 'title';","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select count(*) from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' ",[["1"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'B' limit 1 ",[],"data"] [" create table \"B\" (id serial primary key , \"body\" text , \"a\" integer ); grant select on table \"B\" to anonymous; comment on table \"B\" is 'B'; comment on column \"B\".id is 'ID';comment on column \"B\".\"body\" is 'body';comment on column \"B\".\"a\" is 'a';","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _views",[["0"]],"data"] [" select id from _views where name = 'View' limit 1; ",[],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'A' limit 1 ",[["946894"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'B' limit 1 ",[["946905"]],"data"] [" insert into _views (name, definition, description) values('View', 'select * from A, B where A.id = B.a order by A.title', NULL) ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _views",[["1"]],"data"] [" select id from _views where name = 'View' limit 1; ",[["1"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _views",[["1"]],"data"] [" select id from _views where name = 'View1' limit 1; ",[],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'A' limit 1 ",[["946894"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'B' limit 1 ",[["946905"]],"data"] [" insert into _views (name, definition, description) values('View1', 'select * from A, B where A.id = B.a order by A.title', NULL) ",1,"data"]