Re: [JDBC] Strange server error with current 8.0beta driver

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [JDBC] Strange server error with current 8.0beta driver
Date: 2004-11-24 09:37:35
Message-ID: 41A4565F.2080804@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

Oliver Jowett wrote:

> Perhaps PerformCursorOpen should copy the query tree before planning, or
> plan in a different memory context?

Patch attached. It moves query planning inside the new portal's memory
context. With this applied I can run Barry's testcase without errors,
and valgrind seems OK with it too.

-O

Attachment Content-Type Size
pgsql-declare-memory-clobber.txt text/plain 2.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Jowett 2004-11-24 09:42:21 valgrind complaints in pgstat_write_statsfile
Previous Message Oliver Jowett 2004-11-24 09:21:44 Re: [JDBC] Strange server error with current 8.0beta driver

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Eisentraut 2004-11-24 10:19:44 Re: Copying into Unicode - Correcting Errors
Previous Message Oliver Jowett 2004-11-24 09:21:44 Re: [JDBC] Strange server error with current 8.0beta driver