Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A7205632AE0 for ; Thu, 7 Jan 2010 10:14:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06660-05 for ; Thu, 7 Jan 2010 14:14:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 455EB632284 for ; Thu, 7 Jan 2010 10:14:28 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-103-69.bk7-dsl.surnet.cl [200.126.103.69]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id E5F53348048; Thu, 7 Jan 2010 06:14:25 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DDDD46E5B1; Thu, 7 Jan 2010 11:14:23 -0300 (CLST) Date: Thu, 7 Jan 2010 11:14:23 -0300 From: Alvaro Herrera To: Lefteris Cc: Jochen Erwied , pgsql-performance@postgresql.org Subject: Re: Air-traffic benchmark Message-ID: <20100107141423.GC4315@alvh.no-ip.org> References: <852badbc1001070438j36eb10d3qa22398ffcbef405f@mail.gmail.com> <4B45E36E.4040706@tweakers.net> <852badbc1001070547p48b47175vf87efc473e3bd41b@mail.gmail.com> <26014999.20100107150535@erwied.eu> <852badbc1001070610p698dc3cfr4628b1e7768990e6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <852badbc1001070610p698dc3cfr4628b1e7768990e6@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.589 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188 X-Spam-Level: X-Archive-Number: 201001/91 X-Sequence-Number: 36971 Lefteris escribió: > Yes, I am reading the plan wrong! I thought that each row from the > plan reported the total time for the operation but it actually reports > the starting and ending point. > > So we all agree that the problem is on the scans:) > > So the next question is why changing shared memory buffers will fix > that? i only have one session with one connection, do I have like many > reader workers or something? No amount of tinkering is going to change the fact that a seqscan is the fastest way to execute these queries. Even if you got it to be all in memory, it would still be much slower than the other systems which, I gather, are using columnar storage and thus are perfectly suited to this problem (unlike Postgres). The talk about "compression ratios" caught me by surprise until I realized it was columnar stuff. There's no way you can get such high ratios on a regular, row-oriented storage. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support