As a database developer, you want these sub-transactions or autonomous transactions to be processed and committed regardless of what happens to the larger surrounding transaction block.
The pg_background Postgres extension originally written by Robert Haas starts a separate worker to process a SQL statement, which is a nice way to achieve an autonomous transaction.
P. Bherde, A. Telang, M. Bhuva, H. Gajra, and A. Patel. International Journal on Recent and Innovation Trends in Computing and Communication, 3 (4):
2069--2071(April 2015)
I. Launders. Proceedings of the 19th International Conference on Conceptual Structures (ICCS 2011), volume 6828 of Lecture Notes in Computer Science, page 145-158. Springer, (2011)
D. Anicic, and N. Stojanovic. Intelligent Event Processing, Papers from the 2009 AAAI Spring Symposium, SS-09-05, page 14--20. Menlo Park, CA, AAAI Press, (2009)
J. Gray. Very Large Data Bases, 7th International Conference, September 9-11, 1981, Cannes, France, Proceedings, page 144-154. IEEE Computer Society, (1981)