Re: max( bool )? - Mailing list pgsql-sql

From Tom Lane
Subject Re: max( bool )?
Date
Msg-id 7036.986397391@sss.pgh.pa.us
Whole thread Raw
In response to max( bool )?  (Cedar Cox <cedarc@visionforisrael.com>)
Responses Re: max( bool )?  (Cedar Cox <cedarc@visionforisrael.com>)
List pgsql-sql
Cedar Cox <cedarc@visionforisrael.com> writes:
> Now for the problem..  In attempting to get what I want, I wrote this:

> select not exists (select distinct max((select sc1caption from tblstsc1
> where (tblstsc1options.surid like surid || '.%' or
> surid=tblstsc1options.surid) and surid!=tblstsc1options.surid and
> sc1caption is not null)) from tblstsc1options where '164' like surid ||
> '.%' or surid like '164' || '.%');

> And I get this notice:

>   NOTICE:  PortalHeapMemoryFree: 0x0x824a6e8 not in alloc set!
>   NOTICE:  Buffer Leak: [059] (freeNext=54, freePrev=58, relname=tblstsc1,
> blockNum=0, flags=0x14, refcount=-4 -1)

(a) What Postgres version is this?

(b) Could we see the schemas for the tables?  (pg_dump -s output is the
best way)
        regards, tom lane


pgsql-sql by date:

Previous
From: Kyle
Date:
Subject: Query broken under 7.1RC2
Next
From: "tjk@tksoft.com"
Date:
Subject: Re: outer joins