Primary Key and Indices

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Primary Key and Indices
Date: 2005-04-24 16:49:21
Message-ID: Pine.LNX.4.61.0504240945590.4797@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm converting mysql tables to postgres. One of the tables has this:

PRIMARY KEY (org_id, contact_id),
KEY contact (contact_id, org_id)

Is there really a difference in the two indices if the sequence of fields
is reversed?

Thanks,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2005-04-24 17:09:44 Re: timezone() with timeofday() converts the wrong direction?
Previous Message Michael Fuhr 2005-04-24 16:49:13 Re: timezone() with timeofday() converts the wrong direction?