pg_durable is a Microsoft developed PostgreSQL extension that integrates fault-tolerant, long-running execution directly into the database. To understand why this is useful, think about what normally happens if you run a long, complex database job and the server crashes or your connection drops; you lose your progress, and you have to start all over again. https://www.i-programmer.info/news/80-java/18984-pgdurable-durable-sql-functions-and-orchestration-for-postgresql.html
A dairy of my work.Just links to the full artices on i-programmer.info