PGSQL 设置已有字段不能为NULL和默认值
alter table 表名 alter 字段名 set not null; alter table log alter ip set not null; alter table 表名 alter 字段名 set default '' 或 0
    活到老,学到老。
alter table 表名 alter 字段名 set not null; alter table log alter ip set not null; alter table 表名 alter 字段名 set default '' 或 0
