pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: caldodge@fpcc.net
To: pgsql-sql@postgresql.org
Subject: Re: SELECT * FROM t where p or q;
Date: 20 Nov 2001 16:15:03 -0800
Message-ID: <ca6275f0.0111201615.630ef37b@posting.google.com> (raw)
References: <3BF51764.8BEAC873@efbs-seafrigo.fr>

frbn@efbs-seafrigo.fr wrote in message news:<3BF51764.8BEAC873@efbs-seafrigo.fr>...

> SELECT * FROM tab WHERE num = x OR num = y;
> 
> time: more than 10 mn !!!
> 
> num is an integer.

Parsers and optimizers don't always see what's _obvious_ to us.

Have you tried:

SELECT * from tab where num in (x,y);



view thread (7+ messages)  latest in thread

Message-ID: <ca6275f0.0111201615.630ef37b@posting.google.com>
Permalink:  ../ca6275f0.0111201615.630ef37b@posting.google.com/
Also on:    postgresql.org/message-id/ca6275f0.0111201615.630ef37b@posting.google.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-sql@postgresql.org
  Cc: caldodge@fpcc.net
  Subject: Re: SELECT * FROM t where p or q;
  In-Reply-To: <ca6275f0.0111201615.630ef37b@posting.google.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