我有一個名爲pivot_device_user
的表,它的ID爲not null default nextval('pivot_device_user_id_seq'::regclass)
。在Postgres中重命名爲nextval('...')
然後我決定將我的表重命名爲pivot_box_user
,但nextval(...)
仍然是nextval('pivot_device_user_id_seq'::regclass)
。我想將它更改爲nextval('pivot_box_user_id_seq'::regclass)
。我該怎麼做呢?
沒有,因爲該序列實際上是一種許可這是給用戶的。所以目前postgres返回一個錯誤,說用戶沒有正確的權限。 – Kousha