"Brian Mueller" <brian@twotomatoes.com> writes:
> When doing a large query from either an OpenACS 3.2.2 web page (/intranet/e=
> mployees/admin/index.tcl) or from psql, I get the following error:
> NOTICE: PortalHeapMemoryFree: 0x0x41a37610 not in alloc set!
> NOTICE: PortalHeapMemoryFree: 0x0x41a37cc8 not in alloc set!
> NOTICE: PortalHeapMemoryFree: 0x0x41a37ca0 not in alloc set!
> ERROR: btree scan list trashed; can't find 0x0x41a37bf0
Brian, it looks like this problem has already been fixed in current CVS
sources --- it's a foulup in subplan handling for APPEND plans, which
basically means that you need sub-SELECTS in a UNION to cause it.
Easiest patch for 7.0.* is to grab src/backend/optimizer/plan/setrefs.c
out of the CVS server or a recent nightly snapshot tarball and drop it
into 7.0.* sources as-is.
regards, tom lane