Merge branch 'master' of 10.10.14.250:huanghai/dsMin

master
wubin 4 years ago
commit b09987f9a7

@ -0,0 +1,27 @@
select 'DO $$ BEGIN BEGIN ALTER TABLE '||relname||' ADD COLUMN recordyear int4; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE ''column recordyear already exists''; END; END;$$;' as tabname from pg_class c
where relkind = 'r' and relname like 'j%_r' and relname not like 'pg_%' and relname not like 'sql_%' order by relname;
select 'update ' || relname || ' set recordyear=2019;' as sqlstr from pg_class c
where relkind = 'r' and relname like 'j%_r' and relname not like 'pg_%' and relname not like 'sql_%' order by relname;
-- 设置默认值
select 'DO $$ BEGIN BEGIN ALTER TABLE '||relname||' ALTER COLUMN recordyear SET DEFAULT 2020; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE ''column recordyear already exists''; END; END;$$;' as tabname from pg_class c
where relkind = 'r' and relname like 'j%_r' and relname not like 'pg_%' and relname not like 'sql_%' order by relname;
-- 删除默认值
ALTER TABLE table_name ALTER COLUMN column_name DROP DEFAULT;
select 'alter table '||pg_class.relname || ' drop constraint '|| pg_constraint.conname ||';' as pk_name from
pg_constraint inner join pg_class
on pg_constraint.conrelid = pg_class.oid
inner join pg_attribute on pg_attribute.attrelid = pg_class.oid
and pg_attribute.attnum = pg_constraint.conkey[1]
inner join pg_type on pg_type.oid = pg_attribute.atttypid where pg_attribute.attname='rowid'
-- where pg_class.relname = 'teacher'
and pg_constraint.contype='p'

@ -0,0 +1,57 @@
[Error]2021/03/08 13:48:58 CreateRedisError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:48:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 CreateRedisError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:52:21 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 CreateRedisError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/08 13:53:58 SqlQueryError dial tcp :0: connectex: The requested address is not valid in its context.
[Error]2021/03/16 14:18:15 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:18:16 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:22:02 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:22:03 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:27:19 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:27:20 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:00 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:01 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:24 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:25 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:56 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:31:57 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:34:42 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:34:43 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:35:38 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:35:39 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:42:31 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:42:32 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:43:27 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:43:28 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:44:21 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 14:44:22 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:41:40 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:41:41 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:45:12 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:45:13 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:45:38 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:45:39 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:58:02 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.
[Error]2021/03/16 15:58:03 SqlQueryError dial tcp 10.10.14.187:32066: connectex: No connection could be made because the target machine actively refused it.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save