Primary keys and composite unique keys(basic question) - Mailing list pgsql-general

From Mohan Radhakrishnan
Subject Primary keys and composite unique keys(basic question)
Date
Msg-id CAOoXFP8gdkAFyDSLbac+advQKPCORYobkGot5CWis+aYZhnb+A@mail.gmail.com
Whole thread Raw
Responses Re: Primary keys and composite unique keys(basic question)
Re: Primary keys and composite unique keys(basic question)
List pgsql-general
Hello,
             We have UUIDs in our tables which are primary keys. But in some cases
we also identify a composite unique key apart from the primary key.

My assumption is that there should be a unique key index created by us using the composite key. And when we fetch using this composite key instead of the primary key we have a performance boost due to the index.

Is this right ? Are there more details I should read to understand this better ? Please point. If I should use the query planner to look at the statistics I will.
.
Thanks,
Mohan

pgsql-general by date:

Previous
From: higher_ground
Date:
Subject: Re: BDR question on dboid conflicts
Next
From: Laurent FAILLIE
Date:
Subject: Looking for some help with HA / Log Log-Shipping