Skip site navigation (1) Skip section navigation (2)

debug a mess

From: Wei Weng <wweng(at)kencast(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: debug a mess
Date: 2003-02-25 18:41:54
Message-ID: 20030225134154.A23392@example.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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


Responses

pgsql-interfaces by date

Next:From: Adam HaberlachDate: 2003-02-25 18:46:38
Subject: perl dbd libraries keeping transactions open?
Previous:From: Agrawal, ManishDate: 2003-02-25 14:35:19
Subject: Re: PgAdmin problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group