X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 03A325638B for ; Mon, 14 Mar 2005 16:33:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77312-06 for ; Mon, 14 Mar 2005 16:33:47 +0000 (GMT) Received: from sranda.klamovka.kosire.czf (unknown [82.113.63.66]) by svr1.postgresql.org (Postfix) with ESMTP id 12A4D55F07 for ; Mon, 14 Mar 2005 16:33:45 +0000 (GMT) Received: (qmail 3827 invoked from network); 14 Mar 2005 17:33:45 +0100 Received: from startnet.klamovka.kosire.czf (HELO ?192.168.11.101?) (10.15.6.17) by mail.klamovka.kosire.czf with AES256-SHA encrypted SMTP; 14 Mar 2005 17:33:45 +0100 Message-ID: <4235BCE8.1090705@startnet.cz> Date: Mon, 14 Mar 2005 17:33:44 +0100 From: =?windows-1250?Q?Miroslav_=8Aulc?= Organization: StartNet s.r.o. User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: PFC , John Arbash Meinel , PGSQL mailing list Subject: Re: How to read query plan References: <42345D24.8070104@startnet.cz> <4234692E.3050802@arbash-meinel.com> <42347407.2000202@startnet.cz> <42347D5E.9000900@arbash-meinel.com> <42348F54.1000408@startnet.cz> <423493E5.6040203@arbash-meinel.com> <42355249.8090101@startnet.cz> <423556B8.4020500@startnet.cz> <14079.1110817416@sss.pgh.pa.us> In-Reply-To: <14079.1110817416@sss.pgh.pa.us> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------050307060105030602050402" X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200503/266 X-Sequence-Number: 10971 This is a multi-part message in MIME format. --------------050307060105030602050402 Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 7bit Tom Lane wrote: >Just FYI, I did a quick search-and-replace on your dump to replace >varchar(1) by "char", which makes the column fixed-width without any >change in the visible data. This made hardly any difference in the >join speed though :-(. So that is looking like a dead end. > > I'll try to change the data type to bool but the problem I stand in front of is that the code expects that SELECTs return 'Y' or 'N' but what I have found out till now is that PostgreSQL returns 't' or 'f' for bool data. I think about some solution but they use CPU :-( >John's idea about re-joining to the main table to pick up the bulk of >its fields only after joining to the sub-tables might work. > > I'll try that. It seems it could work. > regards, tom lane > > Miroslav --------------050307060105030602050402 Content-Type: text/x-vcard; charset=utf-8; name="miroslav.sulc.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="miroslav.sulc.vcf" begin:vcard fn;quoted-printable:Miroslav =C5=A0ulc n;quoted-printable:=C5=A0ulc;Miroslav org:StartNet s.r.o. adr;quoted-printable;quoted-printable:;;Vrchlick=C3=A9ho 161/5;Praha 5;;150 00;=C4=8Cesk=C3=A1 republika email;internet:miroslav.sulc@startnet.cz title:CEO tel;work:+420 257 225 602 tel;cell:+420 603 711 413 x-mozilla-html:TRUE url:http://www.startnet.cz version:2.1 end:vcard --------------050307060105030602050402--