From: Alexey Bashtanov <bashtanov@imap.cc>
To: Tony Shelver <tshelver@gmail.com>
To: Patrick.Fiche@aqsacom.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Function for Exception Logging
Date: Mon, 5 Nov 2018 13:26:36 +0000
Message-ID: <7f8ac4f2-4ddb-1566-e0b4-3c083252d073@imap.cc> (raw)
In-Reply-To: <CAG0dhZA3j2sAqm9+9oE_biFojpQ3Y9AR=aGGrBjLCED5csJEGQ@mail.gmail.com>
References: <VI1PR0501MB25747CEE9D197D4C2EF31725EFF30@VI1PR0501MB2574.eurprd05.prod.outlook.com>
<CAG0dhZA3j2sAqm9+9oE_biFojpQ3Y9AR=aGGrBjLCED5csJEGQ@mail.gmail.com>
> Even more difficult in PG functions as they have no commit / rollback
> capability. I haven't played with stored procedures in in PG11 yet.
You can simulate oracle autonomous transaction feature in postgres by
connecting to the same db using dblink.
As for implicit passing of error parameters, I don't think it's possible.
Best, Alex
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: bashtanov@imap.cc, tshelver@gmail.com, Patrick.Fiche@aqsacom.com
Subject: Re: Function for Exception Logging
In-Reply-To: <7f8ac4f2-4ddb-1566-e0b4-3c083252d073@imap.cc>
References: <VI1PR0501MB25747CEE9D197D4C2EF31725EFF30@VI1PR0501MB2574.eurprd05.prod.outlook.com> <CAG0dhZA3j2sAqm9+9oE_biFojpQ3Y9AR=aGGrBjLCED5csJEGQ@mail.gmail.com> <7f8ac4f2-4ddb-1566-e0b4-3c083252d073@imap.cc>
* 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