From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Niko Ware <nikowareinc@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Programmatic Trigger Create
Date: Sat, 20 Mar 2021 13:23:21 -0400
Message-ID: <228721.1616261001@sss.pgh.pa.us> (raw)
In-Reply-To: <5566ea3a-e0ae-8595-a13f-ec525e7c9eeb@aklaver.com>
References: <CACHGMtRojCxdrr0mGrr97M24KNQHA28o3rWXn2Q7v71SruM+1w@mail.gmail.com>
<5566ea3a-e0ae-8595-a13f-ec525e7c9eeb@aklaver.com>
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> In what program is:
> EXEC SQL EXECUTE IMMEDIATE :my_sql_cmd
> being done?
Presumably ECPG, which if memory serves defaults to not-auto-commit.
Maybe Niko is failing to commit the transaction?
If all else fails, turning on log_statements on the server and
examining the log might help debug what the program is doing wrong.
regards, tom lane
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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, nikowareinc@gmail.com
Subject: Re: Programmatic Trigger Create
In-Reply-To: <228721.1616261001@sss.pgh.pa.us>
References: <CACHGMtRojCxdrr0mGrr97M24KNQHA28o3rWXn2Q7v71SruM+1w@mail.gmail.com> <5566ea3a-e0ae-8595-a13f-ec525e7c9eeb@aklaver.com> <228721.1616261001@sss.pgh.pa.us>
* 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