pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
To: pgsql-performance@postgresql.org
Subject: Re: seqscan instead of index scan
Date: Mon, 30 Aug 2004 21:39:17 +0200
Message-ID: <opsdj8vrsacq72hf@musicbox> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A748E@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A748E@Herge.rcsinc.local>


>> create index t_idx on t((c+d));
>> select * from t where c+d > 0;

	Why not :

	select ((select * from t where c<>0::bigint) UNION (select * from t where  
d<>0::bigint))
	group by whatever;

	or someting ?



view thread (14+ messages)  latest in thread

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

 · 

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
  Subject: Re: seqscan instead of index scan
  In-Reply-To: <opsdj8vrsacq72hf@musicbox>

* 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