Re: NOTICE-message - Mailing list pgsql-general

From Tom Lane
Subject Re: NOTICE-message
Date
Msg-id 11484.971988040@sss.pgh.pa.us
Whole thread Raw
In response to NOTICE-message  (Ulf Mehlig <umehlig@uni-bremen.de>)
List pgsql-general
Ulf Mehlig <umehlig@uni-bremen.de> writes:
>   NOTICE:  PortalHeapMemoryFree: 0x0x40b139c8 not in alloc set!
>   NOTICE:  PortalHeapMemoryFree: 0x0x40b139c8 not in alloc set!
>
>          select s_id,nummer,
>                 min(timest::time) as timest,
                  ^^^^^^^^^^^^^^^^^
>                 round(avg(photo),2),round(stddev(photo),3),

It turns out that the problem is in the above min() function: min() and
max() are broken in 7.0.* for types time and timetz.  The bug is also
causing most of the other aggregate results in the query to be garbage,
BTW.

There is no such bug in current sources because memory management for
aggregates is now done in a cleaner fashion.  I'll see about making a
quick-hack patch for 7.0.3, though.

            regards, tom lane

pgsql-general by date:

Previous
From: "Steve Wolfe"
Date:
Subject: Re: Any risk in increasing BLCKSZ to get larger tuples?
Next
From: "Diehl, Jeffrey"
Date:
Subject: RE: MySQL -> pgsql