Re: fatal ERROR running simple join query...

From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Ligia Pimentel <lmpimentel(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: fatal ERROR running simple join query...
Date: 2001-05-14 15:21:56
Message-ID: 989853716.3afff814ad799@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Quoting Ligia Pimentel <lmpimentel(at)yahoo(dot)com>:

>
> I have a problem with postgres, I'm running a query that joins two tables,
> one with 129000+ records, and the other with 1172 records, it's a very
> simple join. But postgres can't handle it!!! (Both tables have an index on
> the field "cuentacb").
>
> I get the following error after 3 minutes...
>
> migracion=# select * from cuentasequivalentes, equiv11mayo m
> migracion-# where cuentasequivalentes.cuentacb = m.cuentacb
> migracion-# and cuentasequivalentes.cuentabr <> m.cuentabr;
> FATAL 1: Memory exhausted in AllocSetAlloc()
> pqReadData() -- backend closed the channel unexpectedly.
> This probably means the backend terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Succeeded.

First you should run VACUUM analyze on that database, or at least on those 2
tables. Check with EXPLAIN to see how much better the queries get after the
analyze.

> What can I do? I'm guessing that I could change a configuration parameter
> or
> something like that, but I don't know.

There are so many parameters to change, that I have to tell you to go and see
the "PostgreSQL 7.1 Administrator's Guide".

Saludos... :-)

--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Srikanth Rao 2001-05-14 15:21:58 Counting rows in a table
Previous Message Cwhisperer 2001-05-14 15:21:07 Case