|
Thanks .. I miss that FK don't create indexed ... since Primary key
implicitly does ... I'm a bit surprised of that behavior thought, since it means that if we delete a row from table A all tables (B,C,D) with FK pointing to this table (A) must be scanned. If there is no index on those tables it means we gone do all Sequantial scans. Than can cause significant performance problem!!!. Is there a reason why implicit index aren't created when FK are declared. I looked into the documentation and I haven't found a way to tell postgresql to automatically create an index when creating la FK. Does it means I need to manage it EXPLICITLY with create index statement ? Is there another way ? Thanks for you help that simple answer will solve a lot of performance problem I have ... /David On Mon, 4 Jul 2005, David Gagnon wrote:If you can just help my understanding the choice of the planner. |
- Re: [PERFORM] Why the planner is not using the IND... David Gagnon
- Re: [PERFORM] Why the planner is not using th... Christopher Kings-Lynne
- Re: [PERFORM] Why the planner is not using th... Bruno Wolff III
- Re: [PERFORM] Why the planner is not using th... Stephan Szabo
- Re: [PERFORM] Why the planner is not using th... Tom Lane
- Re: [PERFORM] Why the planner is not usin... David Gagnon
- Re: [PERFORM] Why the planner is not ... Enrico Weigelt
