Re: Default Stats Revisited
| От | Bruce Momjian |
|---|---|
| Тема | Re: Default Stats Revisited |
| Дата | |
| Msg-id | 200403120440.i2C4eTo01503@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: Default Stats Revisited (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Default Stats Revisited
|
| Список | pgsql-hackers |
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > Another idea is whether a foreign key column should get extra > > statistics? > > In practice, both ends of an FK relationship have to be indexed, > so I don't see that we need any extra special case for that. Do they? We don't create an index automatically when using REFERENCES. We do create an index for PRIMARY KEY. I was just wondering if the REFERENCES column is more sensitive to join usage and would benefit from more accurate statistics even if it doesn't have an index. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
В списке pgsql-hackers по дате отправления: