From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx]
On Behalf Of Dane Foster Hello, If I have a primary key index of the form: should I create a separate index (col1, col2) or is PostgreSQL capable of using the primary key's index? Thanks,
Dane Columns in proposed index on FK (col1, col2) are in the same order (and in the beginning) of PK index. So, no need for additional index (col1, col2). Regards, Igor Neyman |