Untitled Post - 13 Posted on 2013-11-23 Edited on 2020-12-04 In GNU/Linux PostgreSQL重设serial类型主键从1开始。PostgreSQL为serial类型字段默认生成的序列sequence的名字为_seq,可以用这个命令重设:ALTER SEQUENCE _seq RESTART WITH 1;