pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: henk de wit <henk53602@hotmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: How to speed up min/max(id) in 50M rows table?
Date: Fri, 12 Oct 2007 18:51:03 -0400
Message-ID: <6275.1192229463@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY124-W124912A351A1628891721FF5A00@phx.gbl>
References: <BAY124-W503931258D0AE13AF37546F5A00@phx.gbl>
	<5754.1192226626@sss.pgh.pa.us>
	<BAY124-W124912A351A1628891721FF5A00@phx.gbl>

henk de wit <henk53602@hotmail.com> writes:
> I see, that sounds very interesting too. As you might have noticed, I'm not=
>  an expert on this field but I'm trying to learn. I was under the impressio=
> n that the last few incarnations of postgresql automatically combined singl=
> e column indexes for cases where a multi-column index would be needed in ea=
> rlier releases.

It's possible to combine independent indexes for resolving AND-type
queries, but the combination process does not preserve ordering, so
it's useless for this type of situation.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <6275.1192229463@sss.pgh.pa.us>
Permalink:  ../6275.1192229463@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6275.1192229463@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, henk53602@hotmail.com
  Subject: Re: How to speed up min/max(id) in 50M rows table?
  In-Reply-To: <6275.1192229463@sss.pgh.pa.us>

* 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