Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 128A64763FF for ; Fri, 5 Apr 2002 12:50:42 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g35HokF25911; Fri, 5 Apr 2002 12:50:46 -0500 (EST) To: nickf@ontko.com Cc: "pgsql-admin" Subject: Re: A plan returned by explain doesn't make sense to me In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Fri, 05 Apr 2002 12:01:42 -0500" Date: Fri, 05 Apr 2002 12:50:46 -0500 Message-ID: <25908.1018029046@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/66 X-Sequence-Number: 3954 "Nick Fankhauser" 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