Re: PG7.4 ordering operator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: strk <strk(at)keybit(dot)net>
Cc: postgis-devel(at)postgis(dot)refractions(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PG7.4 ordering operator
Date: 2003-11-20 14:44:17
Message-ID: 4023.1069339457@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

strk <strk(at)keybit(dot)net> writes:
> I've provided a default btree operator class but I'm often
> going out of memory when using DISTINCT or UNION clauses.

> How can I reduce memory usage in these cases ?
> Since passed argument are TOASTED, but I use only a small
> initial portion if them to make the computation, can I
> avoid DETOASTING them and still reach that initial part ?

No, I don't think so, but see PG_FREE_IF_COPY. Operators used
in btree indexes are expected not to leak memory.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-11-20 14:58:33 Re: Build farm
Previous Message Matthew T. O'Connor 2003-11-20 14:30:43 Re: [PERFORM] More detail on settings for pgavd?