Re: A plan returned by explain doesn't make sense to me - Mailing list pgsql-admin

From Tom Lane
Subject Re: A plan returned by explain doesn't make sense to me
Date
Msg-id 25908.1018029046@sss.pgh.pa.us
Whole thread Raw
In response to Re: A plan returned by explain doesn't make sense to me  ("Nick Fankhauser" <nickf@ontko.com>)
List pgsql-admin
"Nick Fankhauser" <nickf@ontko.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

pgsql-admin by date:

Previous
From: "Marin Dimitrov"
Date:
Subject: Re: Data Files
Next
From: d_nardini@btconnect.com
Date:
Subject: PG 7.2 install on RH 7.0 dependency errors