Re: [GENERAL] Linking tables and indexes

2007-01-15 Thread Jorge Godoy
Alvaro Herrera <[EMAIL PROTECTED]> writes: > If you're in 8.1 or better, I'd suggest defining only two indexes, one I'm on 8.1. Waiting for SuSE to update to 8.2... ;-) > on (ci_id) and other on (document_client_id), and let the system deal > with mixing them using the bitmap scan technique w

Re: [GENERAL] Linking tables and indexes

2007-01-15 Thread Alvaro Herrera
Jorge Godoy wrote: > Thinking about how PostgreSQL is able to use composed indices should I create > the reverse index ("CREATE INDEX something ON ged.documents_clients_cis > (document_client_id, ci_id)") or I'd only be wasting disk and processing? > > The query can be done from either side (i.e.

[GENERAL] Linking tables and indexes

2007-01-15 Thread Jorge Godoy
Hi! I'm not sure about the English terminology for that so I'm sorry if I made a mistake on the subject and on this message. I hope de code explains it better if I missed it :-) I have some tables that will have N:M relationships between themselves and for that I created some linking tables su