From: Michael Meskes <meskes@postgresql.org>
To: Kamil Andrusz <wizz@mniam.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: 'execute immediate' problem
Date: Tue, 22 Jun 2004 08:53:10 +0200
Message-ID: <20040622065310.GA5705@1> (raw)
In-Reply-To: <8765aa5nis.fsf@shwurzbung.mniam.net>
References: <8765aa5nis.fsf@shwurzbung.mniam.net>
On Wed, Jun 02, 2004 at 11:15:23AM +0200, Kamil Andrusz wrote:
> Hello list,
>
> I've go a litlle test program, that should transfer data from one db to
> another. It's just a quick hack to check if it would work at all.
> ...
> I think I'm missing something obvious. Any hints?
Yes, you program does not commit the transaction. Thus it gets rolled
back on disconnect.
Keep in mind that ecpg always opens a transaction unless you use the
command line option "-t".
Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: meskes@postgresql.org, wizz@mniam.net
Subject: Re: 'execute immediate' problem
In-Reply-To: <20040622065310.GA5705@1>
* 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