Re: A plan returned by explain doesn't make sense to me

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nickf(at)ontko(dot)com
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: A plan returned by explain doesn't make sense to me
Date: 2002-04-05 17:50:46
Message-ID: 25908.1018029046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Nick Fankhauser" <nickf(at)ontko(dot)com> writes:
> So is a multi-column index really just two separate indexes with a
> constraint added if necessary? I guess I had an idea in my head that it
> would be something like an index on the concatenation of the two fields.

Well, it *is* an index on the concatenation of the fields --- but you
can perfectly well use that to search for values of the first field.
(You can't use it to search for values of the second field without
the first, however.)

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message d_nardini 2002-04-05 22:09:35 PG 7.2 install on RH 7.0 dependency errors
Previous Message Nick Fankhauser 2002-04-05 17:01:42 Re: A plan returned by explain doesn't make sense to me