From: Josh Berkus <josh@agliodbs.com>
To: Rhaoni Chiu Pereira <rhaoni@sistemica.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to force an Index ?
Date: Thu, 18 Sep 2003 11:02:10 -0700
Message-ID: <200309181102.10288.josh@agliodbs.com> (raw)
In-Reply-To: <1063907803.3f69f1db83d91@sistemica.info>
References: <1063837067.3f68dd8b5a62b@sistemica.info>
<200309181050.34270.josh@agliodbs.com>
<1063907803.3f69f1db83d91@sistemica.info>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, rhaoni@sistemica.info
Subject: Re: How to force an Index ?
In-Reply-To: <200309181102.10288.josh@agliodbs.com>
References: <1063837067.3f68dd8b5a62b@sistemica.info> <200309181050.34270.josh@agliodbs.com> <1063907803.3f69f1db83d91@sistemica.info> <200309181102.10288.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox