error: ALTER TYPE … ADD cannot run inside a transaction block

后端 未结 4 1453
温柔的废话
温柔的废话 2021-02-12 11:22

I am trying to add new type value to my existing types in PostgreSQL. But I get the following error

error: ALTER TYPE ... ADD cannot run inside a transact

4条回答
  •  无人共我
    2021-02-12 12:14

    You can change your query to

    COMMIT;
    ALTER TYPE public.request_type ADD VALUE "Check";
    

提交回复
热议问题