Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id AE0EE63347A for ; Thu, 7 Jan 2010 10:10:34 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 51628-04 for ; Thu, 7 Jan 2010 14:10:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mail.postgresql.org (Postfix) with ESMTP id AF853632284 for ; Thu, 7 Jan 2010 10:10:23 -0400 (AST) Received: by fg-out-1718.google.com with SMTP id 19so7504693fgg.1 for ; Thu, 07 Jan 2010 06:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SJjTXlxSDeLw5xLpNCSRAX9b9Vp9jXJsWw054K2U9HU=; b=VUqHVt3oU6RWZx6kCQWnB1bIjwNXuBcP1zawjTvOK+j3un60PGqzkR1augO8Zo95wE a132tATE1W6zYcleuN7BJq7nIOtT8fn2uPerbuHvTMV5FCyuYXh0H/ymKPuMH5rRqvGB g9T0SR2Uyc3MJorC2q9QwxQYleLKym5A+HLLQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Q0Y2qBFhDuP+sH8j7TUiooUanfBtOU9H90LW0jAlnPzCv1EtYmZSnwOQQP9rGIJbhm jdy3gfbqWIaZJdBGdR8fowt25uu0KJ89fOq2HZqLbQZ7nL7HAaExR5yMrpOKQBu6CjUl xNcKJHgu2TFUtXiBlyvMGRoRt5ZCAQncYbkHM= MIME-Version: 1.0 Received: by 10.239.172.208 with SMTP id b16mr2210766hbf.39.1262873421077; Thu, 07 Jan 2010 06:10:21 -0800 (PST) In-Reply-To: <26014999.20100107150535@erwied.eu> References: <852badbc1001070438j36eb10d3qa22398ffcbef405f@mail.gmail.com> <4B45E36E.4040706@tweakers.net> <852badbc1001070547p48b47175vf87efc473e3bd41b@mail.gmail.com> <26014999.20100107150535@erwied.eu> Date: Thu, 7 Jan 2010 15:10:20 +0100 Message-ID: <852badbc1001070610p698dc3cfr4628b1e7768990e6@mail.gmail.com> Subject: Re: Air-traffic benchmark From: Lefteris To: Jochen Erwied Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/90 X-Sequence-Number: 36970 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? Thank you and sorry for the plethora of questions, but I know few about the inner parts of postgres:) lefteris On Thu, Jan 7, 2010 at 3:05 PM, Jochen Erwied wrote: > Thursday, January 7, 2010, 2:47:36 PM you wrote: > >> so I understand from all of you that you don't consider the use of 25k >> for sorting to be the cause of the slowdown? Probably I am missing > > Maybe you are reading the plan wrong: > > - the sort needs only 25kB of memory, and finishes in sub-second time, > =A0mainly because the sort only sorts the already summarized data, and no= t > =A0the whole table > - the sequential scan takes 346 seconds, and thus is the major factor in > =A0time to finish! > > So the total query time is 371 seconds, of which 346 are required to > completely scan the table once. > > -- > Jochen Erwied =A0 =A0 | =A0 home: jochen@erwied.eu =A0 =A0 +49-208-38800-= 18, FAX: -19 > Sauerbruchstr. 17 | =A0 work: joe@mbs-software.de =A0+49-2151-7294-24, FA= X: -50 > D-45470 Muelheim =A0| mobile: jochen.erwied@vodafone.de =A0 =A0 =A0 +49-1= 73-5404164 > >