X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B4F04D1B507 for ; Fri, 19 Sep 2003 06:52:15 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 61176-06 for ; Fri, 19 Sep 2003 03:51:44 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 6AC7FD1B502 for ; Fri, 19 Sep 2003 03:51:42 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id E52A62B3CC; Fri, 19 Sep 2003 08:51:40 +0200 (CEST) Message-ID: <3F6AA786.1080404@klaster.net> Date: Fri, 19 Sep 2003 08:51:50 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5a) Gecko/20030718 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: ries@jongert.nl Cc: pgsql-sql@postgresql.org Subject: Re: is this explain good or bad??? References: <002b01c37e77$e65b7fb0$fd01000a@IT001> In-Reply-To: <002b01c37e77$e65b7fb0$fd01000a@IT001> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/183 X-Sequence-Number: 15161 > explain select count(*) from sq_logfile; Not too helpful. Better choice is: explain analyze select * from sq_logfile; Your explains show that selecting from view is 4 times slower than selecting from a table (35988:128282). It is possible. Anyway counting 1 million rows usualy takes a long time... Regards, Tomasz Myrta