X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 77135D1B500 for ; Thu, 18 Sep 2003 18:02:30 +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 15963-04 for ; Thu, 18 Sep 2003 15:02:20 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 253FDD1B4EB for ; Thu, 18 Sep 2003 15:02:19 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3654001; Thu, 18 Sep 2003 11:02:41 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Rhaoni Chiu Pereira Subject: Re: How to force an Index ? Date: Thu, 18 Sep 2003 11:02:10 -0700 User-Agent: KMail/1.4.3 References: <1063837067.3f68dd8b5a62b@sistemica.info> <200309181050.34270.josh@agliodbs.com> <1063907803.3f69f1db83d91@sistemica.info> In-Reply-To: <1063907803.3f69f1db83d91@sistemica.info> Cc: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200309181102.10288.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/275 X-Sequence-Number: 3641 Rhaoni, > I could .. but this way I wont be used because Oracle doesn't accept such > sintax ! I changed gsames00.ano_mes from varchar to text ! But it still not > fast enough to take Oracle's place !!! > I still trying to do so ... Well, your basic problem is that performance tuning for *any* database often requires use of database-specific syntax. You would be having the same problem, in the opposite direction, if you were trying to port a PostgreSQL app to Oracle without changing any syntax. Here's syntax Oracle should accept: ... gsames00.ano_mes = (CAST(to_char(ftnfco00.data_emissao,'YYYYMM') AS VARCHAR)) AND ... -- Josh Berkus Aglio Database Solutions San Francisco