Re: [SQL] Wierd stuff

From: Mario Jorge Nunes Filipe <mjnf(at)neptuno(dot)sc(dot)uevora(dot)pt>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Wierd stuff
Date: 1999-12-06 13:49:38
Message-ID: 384BBEF2.B6CB6CDD@neptuno.uevora.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tom Lane wrote:
> Actually, I think that this may indeed be the root of the problem.
> I killed several bugs in cross-data-type joins a while back ... for
> example, IIRC pre-6.5 Postgres thought it could use hash joins for
> cross-data-type equality operators, but that doesn't work properly in
> general. Mario, what does EXPLAIN show about how the join query is
> being done?

First of all: sorry for the late reply, but with the weekend and all...

To awnser your question... EXPLAIN shows this:
sac=> explain select c.nome from aluno a, concelho c where
sac-> a.concelho_naturalidade=c.codigo and a.numero_aluno=13792;
NOTICE: QUERY PLAN:

Hash Join (cost=27.44 size=164 width=18)
-> Seq Scan on c (cost=13.16 size=308 width=16)
-> Hash (cost=0.00 size=0 width=0)
-> Index Scan on a (cost=2.05 size=2 width=2)

EXPLAIN

Upgrading at this point might be complicated, but sooner or later i
will have to upgrade...

--
Mario Filipe
mjnf(at)uevora(dot)pt
http://neptuno.sc.uevora.pt/~mjnf

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Assaf Gottlieb 1999-12-06 13:55:41 OLE-DB vs. ODBC performance on SQL Server 7.0:
Previous Message Bruce Momjian 1999-12-06 13:37:04 Re: [SQL] Howto to force NULL rows at the bottom ?