Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA5I7Fq62565 for ; Mon, 5 Nov 2001 13:07:20 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id fA5HjXD98290 for pgsql-sql@postgresql.org; Mon, 5 Nov 2001 12:45:33 -0500 (EST) (envelope-from news) From: "Ligia Pimentel" X-Newsgroups: comp.databases.postgresql.sql Subject: Left join error Date: Mon, 5 Nov 2001 11:39:02 -0600 Organization: . Lines: 22 Message-ID: <9s6j7s$2vvf$1@news.tht.net> Reply-To: "Ligia Pimentel" X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: pgsql-sql@postgresql.org X-Archive-Number: 200111/63 X-Sequence-Number: 5447 Hello. I have a table with 146000+ records. I tried to select with a left join to another table but I get this message: ERROR: MemoryContextAlloc: invalid request size 4294967293 This is the query. select * from cheques left join formasenblanco on cheques.cheque= formasenblanco.cheque where formasenblanco.cheque is null; The table cheques has about 146000+ records. Formasenblanco is smaller. I know I can use subquerys, but in theory, this is much slower. I'm using Postgres 7.1 on Redhat 6.2 Does anyone have a suggestion? Thank you. Ligia