X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0C7399DCC1A for ; Sat, 10 Dec 2005 11:36:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72395-09 for ; Sat, 10 Dec 2005 11:36:18 -0400 (AST) X-Greylist: delayed 00:06:39.07307 by SQLgrey- Received: from web36410.mail.mud.yahoo.com (web36410.mail.mud.yahoo.com [209.191.85.145]) by postgresql.org (Postfix) with SMTP id 0DFFB9DCBEE for ; Sat, 10 Dec 2005 11:36:11 -0400 (AST) Received: (qmail 71245 invoked by uid 60001); 10 Dec 2005 15:29:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lsthmKHhluywJpM8rvQ23N2bw6V5BG2HVnT8pUMe4uCMs4liAC+lOPboB5+NvhFeTMgD0kUO/jFWMvUmHYPi5phXRb+XjS7AH3mfuX0zfeDaoB96ldzscYX/zt1TR29j3D6UDdtD7j1Dg8x+P8e2y65lpIHqgZh+BveKMX5BMTA= ; Message-ID: <20051210152937.71243.qmail@web36410.mail.mud.yahoo.com> Received: from [201.2.194.120] by web36410.mail.mud.yahoo.com via HTTP; Sat, 10 Dec 2005 15:29:37 GMT Date: Sat, 10 Dec 2005 15:29:37 +0000 (GMT) From: Henrique Engelmann Subject: Clustered tables and seqscan disabled To: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-826323334-1134228577=:53389" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.425 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, HTML_10_20=0.945, HTML_MESSAGE=0.001] X-Spam-Score: 1.425 X-Spam-Level: * X-Archive-Number: 200512/267 X-Sequence-Number: 16088 --0-826323334-1134228577=:53389 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Sometime ago I worked in an implantation project that uses postgresql and I remember than the software house recommended us to use seqscan off... I was not very sure, but I thought the best way should be set seqscan on and let postgresql choose the best access plan (index or seqscan). Even against the other team members I changed the configuration to seqscan on and the system didn´t worked anymore. Studying better the reasons I verified that applications were expecting data in primary index order but with seqscan ON sometimes postgresql didn´t use an index and naturally data came without order. I suggested changing the application and including a order by clause... but the software house didn´t make it because they said the system was originally designed for oracle and they did not need to use the ORDER BY clause with Oracle and even so the data were always retrieved in primary index order. I´m thinking with myself ... what kind of problems will they have in the future? I think this kind of configuration is very dependent of clustered tables... Am I right? Best regards! Engelmann. __________________________________________________ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ --0-826323334-1134228577=:53389 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
 
Sometime ago I worked in an implantation project that uses postgresql and I remember than the software house recommended us to use seqscan off...
I was not very sure, but I thought the best way should be set seqscan on and let postgresql choose the best access plan (index or seqscan). Even against the other team members I changed the configuration to seqscan on and the system didn´t worked anymore.
 
Studying better the reasons I verified that applications were expecting data in primary index order but with seqscan ON sometimes postgresql didn´t use an index and naturally data came without order.
 
I suggested changing the application and including  a order by clause... but
the software house didn´t make it because they said the system was originally designed for oracle and they did not need to use the ORDER BY clause with Oracle and even so the data were always retrieved in primary index order.
 
I´m thinking with myself ... what kind of problems will they have in the future?
 
I think this kind of configuration is very dependent of clustered tables... Am I right?
 
Best regards!
Engelmann.

__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/ --0-826323334-1134228577=:53389--