Received: from m72.tm.ee (adsl895.estpak.ee [213.168.23.133]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f42LQBA88959 for ; Wed, 2 May 2001 17:26:12 -0400 (EDT) (envelope-from hannu@tm.ee) Received: from tm.ee (localhost.localdomain [127.0.0.1]) by m72.tm.ee (Postfix) with ESMTP id 325A731BA9; Wed, 2 May 2001 11:27:02 +0200 (CAT) Message-ID: <3AEFD2E6.D221F706@tm.ee> Date: Wed, 02 May 2001 11:27:02 +0200 From: Hannu Krosing X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.2-7mdk i686) X-Accept-Language: et, en MIME-Version: 1.0 To: The Hermit Hacker Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: v7.1 error ... SELECT converted to a COPY? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/21 X-Sequence-Number: 8139 The Hermit Hacker wrote: > > On Mon, 30 Apr 2001, Tom Lane wrote: > > > The Hermit Hacker writes: > > > Okay, maybe this query isn't quite as simple as I think it is, but does > > > this raise any flags for anyone? How did I get into a COPY? It appears > > > re-creatable, as I've done it twice so far ... > > > > > eceb=# select e.idnumber,e.password from egi e, auth_info a where e.idnumber != a.idnumber; > > > Backend sent D message without prior T > > > Backend sent D message without prior T > > > > At a guess, you're running out of memory on the client side for the > > SELECT results (did you really want a not-equal rather than equal > > constraint there!?) > > Yup, want to figure out which ones are in the egi table that I hadn't > transfer'd over yet ... tried it with a NOT IN ( SELECT ... ) combination, > but an explain of that showed two sequential searches on the tables, did you do it as select e.idnumber,e.password from egi e where e.idnumber not in (select idnumber from auth_info a where e.idnumber = a.idnumber) ; to smarten up the optimizer about using a join ? I guess that it can be done using outer joins and testing the "outer2 part for IS NULL in 7.1 ------------------- Hannu