Re: PG7.4 ordering operator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PG7.4 ordering operator
Date
Msg-id 4023.1069339457@sss.pgh.pa.us
Whole thread Raw
In response to Re: PG7.4 ordering operator  (strk <strk@keybit.net>)
List pgsql-hackers
strk <strk@keybit.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


pgsql-hackers by date:

Previous
From: "Matthew T. O'Connor"
Date:
Subject: Re: [PERFORM] More detail on settings for pgavd?
Next
From: Andrew Dunstan
Date:
Subject: Re: Build farm