Received: from dune.krasnet.ru (dune.krasnet.ru [193.125.44.86]) by hub.org (8.8.8/8.7.5) with ESMTP id VAA09468; Mon, 27 Apr 1998 21:55:07 -0400 (EDT) Received: from sable.krasnoyarsk.su (dune.krasnet.ru [193.125.44.86]) by dune.krasnet.ru (8.8.7/8.8.7) with ESMTP id KAA07784; Tue, 28 Apr 1998 10:04:48 +0800 (KRSS) (envelope-from vadim@sable.krasnoyarsk.su) Sender: root@dune.krasnet.ru Message-ID: <35453940.45CB3AD6@sable.krasnoyarsk.su> Date: Tue, 28 Apr 1998 10:04:48 +0800 From: "Vadim B. Mikheev" Organization: ITTS (Krasnoyarsk) X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Byron Nikolaidis , "pgsql-interfaces@postgreSQL.org" , Sbragion Denis , "pgsql-hackers@postgreSQL.org" , Olaf Mittelstaedt , Hannu Krosing Subject: Re: [INTERFACES] Re: [HACKERS] New Driver and Unique Indexes References: <3544D6E7.3211AAB4@insightdist.com> <3545378B.C6263F16@sable.krasnoyarsk.su> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry for koi-8 charset :) Vadim B. Mikheev wrote: > > Byron Nikolaidis wrote: > > > > SELECT balance_id,company_id, balance_date, is_audited,comment, > > balance_type, balance_filename FROM balance WHERE balance_id = 1 AND > > company_id=1 OR balance_id = 1 AND company_id=2 OR balance_id = 1 AND > > company_id=3 OR balance_id = 2 AND company_id=1 OR balance_id = 2 AND > > company_id=2 OR balance_id = 2 AND company_id=3 OR balance_id = 3 AND > > company_id=1 OR balance_id = 3 AND company_id=2 OR balance_id = 3 AND > > company_id=3 OR balance_id = 4 AND company_id=1 > > > > Any more than 2 keyparts, results in crashing the backend with the > > message > > "palloc failure: memory exhausted". Even at 2 keyparts, performance > > suffers greatly. > > THis is known problem of canonificator in optimizer. This query will > crash backend without any indices too. > We told about this in the 6.3-beta period. > No fix currently. I don't know when it will be at all. > > Vadim