["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 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 = 'NetAddr' limit 1 ",[],"data"] [" create table \"NetAddr\" (id serial primary key , \"cidr\" cidr , \"macaddr\" macaddr , \"inet\" inet ); grant select on table \"NetAddr\" to anonymous; comment on table \"NetAddr\" is 'Type testing'; comment on column \"NetAddr\".id is 'ID';comment on column \"NetAddr\".\"cidr\" is 'cidr';comment on column \"NetAddr\".\"macaddr\" is 'macaddr';comment on column \"NetAddr\".\"inet\" is 'inet';","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",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 = 'NetAddr' limit 1 ",[["940547"]],"data"] [" select count(*) from \"NetAddr\" ",[["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 = 'NetAddr' limit 1 ",[["940547"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='NetAddr' and n.nspname = 'tester') order by a.attnum ",[["cidr"],["macaddr"],["inet"]],"data"] ["insert into \"NetAddr\" (\"inet\", \"macaddr\", \"cidr\") values ('192.168.100.128/25', '08-00-2b-01-02-03', '192.168.100.128');\n",1,"data"] ["select max(id) from \"NetAddr\"",[["1"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",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 = 'NetAddr' limit 1 ",[["940547"]],"data"] ["select * from \"NetAddr\" where \"id\" = '1' limit 200;\n",[{"macaddr":"08:00:2b:01:02:03","inet":"192.168.100.128/25","id":"1","cidr":"192.168.100.128/32"}],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",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 = 'NetAddr' limit 1 ",[["940547"]],"data"] [" select count(*) from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='NetAddr' and n.nspname = 'tester') ",[["3"]],"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 = 'NetAddr' limit 1 ",[["940547"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='NetAddr' and n.nspname = 'tester') order by a.attnum ",[["cidr"],["macaddr"],["inet"]],"data"] [" alter table \"NetAddr\" add column \"bigint\" bigint ;comment on column \"NetAddr\".\"bigint\" is 'Bigint'","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 = 'varcharTest' limit 1 ",[],"data"] [" create table \"varcharTest\" (id serial primary key , \"title\" varchar(32) ); grant select on table \"varcharTest\" to anonymous; comment on table \"varcharTest\" is 'Type testing'; comment on column \"varcharTest\".id is 'ID';comment on column \"varcharTest\".\"title\" is 'Test for varchar type';","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) <> '_' ",[["2"]],"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 = 'Test' limit 1 ",[],"data"] [" create table \"Test\" (id serial primary key , \"foo\" char(1) ); grant select on table \"Test\" to anonymous; comment on table \"Test\" is 'test char(xxx)'; comment on column \"Test\".id is 'ID';comment on column \"Test\".\"foo\" is 'Foo';","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",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 = 'Test' limit 1 ",[["940566"]],"data"] [" select count(*) from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Test' and n.nspname = 'tester') ",[["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 = 'Test' limit 1 ",[["940566"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Test' and n.nspname = 'tester') order by a.attnum ",[["foo"]],"data"] [" alter table \"Test\" add column \"blah\" text[] ;comment on column \"Test\".\"blah\" is 'Blah'","0E0","data"]