pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: T E Schmitz <mailreg@numerixtechnology.de>
Cc: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: pgsql-sql@postgresql.org
Subject: Re: cost of CREATE VIEW ...  AS SELECT DISTINCT
Date: Tue, 29 Mar 2005 09:07:10 -0600
Message-ID: <20050329150710.GB32031@wolff.to> (raw)
In-Reply-To: <42496248.4080407@numerixtechnology.de>
References: <42487A6D.6020506@numerixtechnology.de>
	<1112047463.22988.25.camel@state.g2switchworks.com>
	<424928D8.7060705@numerixtechnology.de>
	<20050329132941.GA27251@wolff.to>
	<4249564B.1000807@numerixtechnology.de>
	<20050329135823.GA23852@dcc.uchile.cl>
	<42496248.4080407@numerixtechnology.de>

On Tue, Mar 29, 2005 at 15:12:24 +0100,
  T E Schmitz <mailreg@numerixtechnology.de> wrote:
> 
> Shall do.
> But am I correct in assuming that I should place an index on the group 
> by (TRANSAKTION.ORIGIN) column?

This will mainly help when joining the view to another table. This would
also allow using an index scan instead of a sort in for DISTINCT which
may be faster in some cases.



view thread (12+ messages)  latest in thread

Message-ID: <20050329150710.GB32031@wolff.to>
Permalink:  ../20050329150710.GB32031@wolff.to/
Also on:    postgresql.org/message-id/20050329150710.GB32031@wolff.to

 · 

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-sql@postgresql.org
  Cc: bruno@wolff.to, mailreg@numerixtechnology.de, alvherre@dcc.uchile.cl
  Subject: Re: cost of CREATE VIEW ...  AS SELECT DISTINCT
  In-Reply-To: <20050329150710.GB32031@wolff.to>

* 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