pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Niinimaki <manzikki@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: slow subselects
Date: Wed, 21 Feb 2007 14:34:35 +0900
Message-ID: <58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com> (raw)
In-Reply-To: <22952.1171957386@sss.pgh.pa.us>
References: <58b7e6510702192302i6b526e56wee847a2122cec3aa@mail.gmail.com>
	<58b7e6510702192310v77517652q4ba8ecaf50ea161c@mail.gmail.com>
	<22952.1171957386@sss.pgh.pa.us>

Many thanks! Ismo's reply solved the problem, and Tom's reply solved
another one.

Marko

Ismo Tuononen wrote:
> select studentid,max(score) from studentprofile group by studentid;

On 20/02/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> The optimal index for this would be on studentprofile(studentid,score).



view thread (4+ messages)

Message-ID: <58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com>
Permalink:  ../58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com/
Also on:    postgresql.org/message-id/58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com

 · 

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: manzikki@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: slow subselects
  In-Reply-To: <58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com>

* 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