From: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: RE: Executing a Function with an INSERT INTO command fails
Date: Wed, 29 Aug 2018 10:45:19 -0700 (MST)
Message-ID: <1535564719159-0.post@n3.nabble.com> (raw)
In-Reply-To: <1535560026747-0.post@n3.nabble.com>
References: <1535533938898-0.post@n3.nabble.com>
<019001d43f86$11742960$345c7c20$@swisspug.org>
<1535541719123-0.post@n3.nabble.com>
<019e01d43f91$5f3c4460$1db4cd20$@swisspug.org>
<1535560026747-0.post@n3.nabble.com>
> This is very strange, even if I comment all the loops in the function and
> leave only the INSERT INTO command the insert still doesn't happen.
Now If I execute the function locally in a query window like this:
SELECT public.seal_diff_benchmark_pgsql('YW55IGNhcm5hbCBwbGVhc3VyZQ==')
Then the INSERT INTO command fires and values are being inserted into the
public.runtime_benchmark table. But when I execute the command form a Client
code (C++) on a different pc using the libpqxx library, then everything else
in the function works except the INSERT INTO command. I use the right
credentials since everything else in the function works perfectly.
So why is this happening?
Tal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
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: glozmantal@gmail.com
Subject: Re: Executing a Function with an INSERT INTO command fails
In-Reply-To: <1535564719159-0.post@n3.nabble.com>
References: <1535533938898-0.post@n3.nabble.com> <019001d43f86$11742960$345c7c20$@swisspug.org> <1535541719123-0.post@n3.nabble.com> <019e01d43f91$5f3c4460$1db4cd20$@swisspug.org> <1535560026747-0.post@n3.nabble.com> <1535564719159-0.post@n3.nabble.com>
* 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