Re: [GENERAL] Simulating an outer join

From: Julian Scarfe <jscarfe(at)callnetuk(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Simulating an outer join
Date: 2000-01-13 08:37:40
Message-ID: 387D8ED4.70E123E4@callnetuk.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian wrote:

> I am just writing the EXISTS section from my book. I don't think it
> matters what fields are returned from an EXISTS subquery. If I am
> wrong, someone please let me know.

Celko also writes (in his chapter on EXISTS in "SQL for Smarties"):

"In general the SELECT * option should perform better than the actual column.
It lets the query optimizer decide which column to use. If a column has an
index on it, then simply seeing a pointer to the index is enough to determine
that something exists."

Obviously you're in a much better position than me to judge whether that's the
case in pgsql! But it might be worth a test.

Julian Scarfe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gabriel Fernandez 2000-01-13 09:03:52 Confussion with table-lock levels and isolation levels
Previous Message Erdei Csaba 2000-01-13 07:38:43 Erdei Csaba : Help me