From: Marinos Yannikos <mjy@geizhals.at>
To: pgsql-performance@postgresql.org
Subject: 1-/2-dimensional indexes for common columns, rationale?
Date: Wed, 26 Mar 2008 15:18:53 +0100
Message-ID: <47EA5B4D.5000300@geizhals.at> (raw)
Hello,
we have several indexes such as:
create index foo1 on bla (a);
create index foo2 on bla (b);
create index foo3 on bla (a,b);
They are all used often by frequently used queries (according to
pg_statio_user_indexes), but we need somewhat higher INSERT/UPDATE
performance (having tuned most other things) so we'd like to remove some.
Which of the above would generally speaking be most redundant / best to
remove? Is a 2-dimensional index always much slower than a 1-dimensional
with the first column for queries on the first column? Any other
suggestions?
Thanks,
Marinos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mjy@geizhals.at
Subject: Re: 1-/2-dimensional indexes for common columns, rationale?
In-Reply-To: <47EA5B4D.5000300@geizhals.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox