Re: How are foreign key constraints built?

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How are foreign key constraints built?
Date: 2005-01-25 02:30:58
Message-ID: 20050125023058.GS67721@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 24, 2005 at 09:24:49AM -0500, Greg Stark wrote:
> "Jim C. Nasby" <decibel(at)decibel(dot)org> writes:
>
> > Well, every other database I've used can do index covering, which means
> > index scans *are* faster.
>
> Still not necessarily true. In a case like this it would still be random
> access which would be slower than sequential access.
Actually, even with random access, a covering index can still be faster.
Imagine a single-field index on a table with 40 fields.
--
Jim C. Nasby, Database Consultant decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2005-01-25 02:34:48 Re: Recursive queries
Previous Message elein 2005-01-25 01:26:05 PostgreSQL General Bits Issue # 94