pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP
Date: Wed, 19 Oct 2022 23:39:41 +0200
Message-ID: <869dee44-007f-a50e-c673-bda96ea31b12@gmx.net> (raw)
In-Reply-To: <adb5bbcd1234a847ee038a2457ebf5945003cebc.camel@gmail.com>
References: <353091661.109766.1666124045054.ref@mail.yahoo.com>
	<353091661.109766.1666124045054@mail.yahoo.com>
	<72BEC008-DC6C-4D80-80A6-E1634CFFA656@thebuild.com>
	<E05E818F-1CF6-40E2-A66A-8EB119AAB819@yugabyte.com>
	<2746245.1666128817@sss.pgh.pa.us>
	<adb5bbcd1234a847ee038a2457ebf5945003cebc.camel@gmail.com>

gogala.mladen@gmail.com schrieb am 19.10.2022 um 01:46:
> Amazon, lead by Kevin Closson, the guy who has famously designed
> Oracle Exadata among other things, even came up with the recipe how
> to migrate it to Postgres:
>
> https://aws.amazon.com/blogs/database/migrating-oracle-autonomous-transactions-to-postgresql/


The workaround to use dblink to simulate autonomous transactions is nothing new,
and has been floating around for quite a while.

Here is a blog post from 2012 (6 years before the Amazon recipe was published)

https://raghavt.blog/autonomous-transaction-in-postgresql-9-1/

and another one from 2016

https://blog.dalibo.com/2016/09/08/Pragma_Autonoumous_transactions.html






view thread (16+ messages)  latest in thread

Message-ID: <869dee44-007f-a50e-c673-bda96ea31b12@gmx.net>
Permalink:  ../869dee44-007f-a50e-c673-bda96ea31b12@gmx.net/
Also on:    postgresql.org/message-id/869dee44-007f-a50e-c673-bda96ea31b12@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP
  In-Reply-To: <869dee44-007f-a50e-c673-bda96ea31b12@gmx.net>
  References: <353091661.109766.1666124045054.ref@mail.yahoo.com> <353091661.109766.1666124045054@mail.yahoo.com> <72BEC008-DC6C-4D80-80A6-E1634CFFA656@thebuild.com> <E05E818F-1CF6-40E2-A66A-8EB119AAB819@yugabyte.com> <2746245.1666128817@sss.pgh.pa.us> <adb5bbcd1234a847ee038a2457ebf5945003cebc.camel@gmail.com> <869dee44-007f-a50e-c673-bda96ea31b12@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox