"Henry - Zen Search SA" <henry@xxxxxxxxx> writes: > Our selects which have run normally for a very long time suddenly started: > - consuming all memory. > - crashing (oom) if the select was run directly. > - producing "out of balance" results in one of the column results if run > from within a function. The string "out of balance" appears nowhere in the PG 8.2.x sources. So I suppose it must have come from some add-on code, or perhaps got inserted on the client side. What data type is that column, and what non-core code is involved? regards, tom lane