Re: Left join error

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Ligia Pimentel" <lmpimentel(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Left join error
Date: 2001-11-06 16:36:29
Message-ID: web-499787@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ligia,

> ERROR: MemoryContextAlloc: invalid request size 4294967293

This sounds like a memory/server configuration problem. have you had
any other errors running PostgreSQL? Can you post your machine
configuration (processor, memory, other services, etc.)?

Though I'm not sure this is the best list for runtime problems.
However, I'm not sure what the right list would be. Hey, Marc, how
about a PGSQL-PERFORMANCE list?

> select * from cheques left join formasenblanco on cheques.cheque=
> formasenblanco.cheque where formasenblanco.cheque is null;

I don't believe that this will get you the results you are seeking, even
when the techincal problem gets fixed. I think what you really want
is:

SELECT *
FROM cheques
WHERE NOT EXISTS (SELECT f.cheque FROM formasenblanco f
WHERE f.cheque = cheques.cheque);

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Eckermann 2001-11-06 16:38:42 Re: copy command with PSQL
Previous Message Janning Vygen 2001-11-06 16:05:54 Re: design tool