Ligia,
> Anyhow,... I found that if I write more restrictions on the same
> query, like
> another where, the query responds as I expect. Maybe I was writing
> something
> wrong.
Then it's definitely symptomatic of a memory config problem. I'd say
that when queries get very large, pgsql is trying to use memory that
doesn't exist. Possibilites: you've set shared_buffers or sort_mem much
too high; your machine is chronically low on memory; you have some kind
of kernel config problem; you have a bad RAM card.
Good luck on figuring out which.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete
informationtechnology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small
businesses fax 621-2533 and non-profit organizations. San Francisco