hibernate insert batch with partitioned postgresql

前端 未结 6 1547
一生所求
一生所求 2021-02-07 21:27

is there a solution for batch insert via hibernate in partitioned postgresql table? currently i\'m getting an error like this...

ERROR org.hibernate.jdbc.Abstra         


        
6条回答
  •  后悔当初
    2021-02-07 21:47

    I found another solution for the same problem on this webpage:

    This suggests the same solution that @rogerdpack said, changing the Return Null to Return NEW, and adding a new trigger that deletes the duplicated tuple in the master with the query:

    DELETE FROM ONLY master_table;
    

提交回复
热议问题