Re: BUG #5906: assertion failure in AtCleanup_Portals

From: yamt(at)mwd(dot)biglobe(dot)ne(dot)jp (YAMAMOTO Takashi)
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5906: assertion failure in AtCleanup_Portals
Date: 2011-03-03 00:14:02
Message-ID: 20110303001403.11CB319CEB6@mail.netbsd.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

hi,

> "YAMAMOTO Takashi" <yamt(at)mwd(dot)biglobe(dot)ne(dot)jp> writes:
>> i got the following with my application, which uses
>> PQsendPrepare+PQsendQueryPrepared for nearly everything
>> including ROLLBACK.
>
> Can't do anything about that without a test case.
>
> regards, tom lane

here's a small test case.

YAMAMOTO Takashi

#include <stdlib.h>

#include <libpq-fe.h>

int
main()
{
PGconn *conn;
PGresult *res;

conn = PQconnectdb("");
if (PQstatus(conn) != CONNECTION_OK) {
exit(1);
}
res = PQprepare(conn, "r", "ROLLBACK", 0, NULL);
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
exit(1);
}
PQclear(res);
res = PQexec(conn, "BEGIN");
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
exit(1);
}
PQclear(res);
res = PQexec(conn, "hoge");
/* a syntax error made the transaction aborted */
PQclear(res);
res = PQexecPrepared(conn, "r", 0, NULL, NULL, NULL, 0);
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
exit(1);
}
PQclear(res);
exit(0);
}

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message tushar 2011-03-03 07:55:27 BUG #5909: Function pg_get_expr throwing error for non superuser
Previous Message Aldo Ribeiro 2011-03-02 21:49:02 BUG #5908: PgOleDb 1.0.0.20 returns values without the digits after the dot.