Why is my postgresql function insert rolling back?

后端 未结 1 1777
走了就别回头了
走了就别回头了 2021-01-27 14:51

I have the following function:

CREATE OR REPLACE FUNCTION \"Sensor\".\"PersistTelemetry\"(sid character varying, measurement character varying, val numeric, ts c         


        
相关标签:
1条回答
  • 2021-01-27 15:19

    The log messages indicate that there's no error on the PG end. The transaction sequence numbers (14757-15/16/17) indicate there are no other queries called in the session, so it smells like some bad behavior on the application-side. Could be that you have auto-commit turned off, and you close the connection without committing. To address that, you would need to add a db.session.commit

    Disclosure: I work for EnterpriseDB (EDB)

    0 讨论(0)
提交回复
热议问题