pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@boutiquenumerique.com>
To: Laurent Martelli <laurent@aopsys.com>
To: pgsql-performance@postgresql.org
Subject: Re: Speeding up select distinct
Date: Wed, 16 Mar 2005 19:07:21 +0100
Message-ID: <opsnqsmjvlth1vuj@localhost> (raw)
In-Reply-To: <87k6o74gms.fsf@stan.aopsys>
References: <87k6o74gms.fsf@stan.aopsys>


	Try :

	SELECT owner from pictures group by owner;

> Any ideas, apart from more or less manually maintaining a list of
> distinct owners in another table ?

	That would be a good idea too for normalizing your database.




view thread (10+ messages)  latest in thread

Message-ID: <opsnqsmjvlth1vuj@localhost>
Permalink:  ../opsnqsmjvlth1vuj@localhost/
Also on:    postgresql.org/message-id/opsnqsmjvlth1vuj@localhost

 · 

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: lists@boutiquenumerique.com, laurent@aopsys.com
  Subject: Re: Speeding up select distinct
  In-Reply-To: <opsnqsmjvlth1vuj@localhost>

* 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