"Andrus" <kobruleht2(at)hot(dot)ee> writes:
> SELECT * FROM firma1.toode WHERE toode LIKE '%'
> causes error:
> ERROR: invalid memory alloc request size 2147483648
> SQL state: XX000
This looks like a problem already reported, and patched here:
http://archives.postgresql.org/pgsql-committers/2007-05/msg00088.php
but that fix hasn't made it into any released version yet.
regards, tom lane