From: Wei Weng <wweng@kencast.com>
To: pgsql-interfaces@postgresql.org
Subject: debug a mess
Date: Tue, 25 Feb 2003 13:41:54 -0500
Message-ID: <20030225134154.A23392@example.com> (raw)
I am trying to figure out where the "NOTICE: current transaction is aborted,
queries ignored until end of transaction block" comes from in my code.
Basically, this is what it does:
CString strQuery
= "SELECT datname FROM pg_database WHERE name = 'mydatabase'";
if (NULL == (res = PQexec(pgconn, (CSTR) strQuery)))
{
ErrorQuit(PQerrorMessage(pgconn));
}
It is really very simple code, but each time I try to run it, the postgresql
backend gives me the "transaction aborted" error message. I checked the
mailing list archive, and Tom once explained that the reason for this error
message is the backend had quitted for some reason. Is there anyway to see
why the backend aborted the transaction?? It could be really helpful.
Thanks
Wei
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: wweng@kencast.com
Subject: Re: debug a mess
In-Reply-To: <20030225134154.A23392@example.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