Re: Finding foreign keys that are missing indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: plu 12 <plutard12(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Finding foreign keys that are missing indexes
Date: 2008-12-29 00:42:36
Message-ID: 18295.1230511356@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

plu 12 <plutard12(at)hotmail(dot)com> writes:
> Technically, would we also need to worry about constraints that are a prefix of an index? e.g., that an index on (f1, f2) would be usable for a constraint on (f1)?

I guess you could, but it seems overly complicated for something that's
just meant to locate trouble spots.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2008-12-29 10:43:23 Re: having two database clusters?
Previous Message plu 12 2008-12-29 00:32:29 Re: Finding foreign keys that are missing indexes