pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Roderick A. Anderson <raanders@altoplanos.net>
Cc: PG-SQL <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Good Optimization
Date: Wed, 7 Jul 1999 12:45:07 -0400 (EDT)
Message-ID: <199907071645.MAA01466@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.04.9907070807420.13901-100000@asgard.altoplanos.net>

> Also if the optimizer works similar to Oracle then the order of
> where statements would also help in actual performance.  I'm mostly a
> lurker on this list but have never seen anything about this issue.
>    When using Oracle, and won't it be nice when people mention PostgreSQL
> functionality when comparing other databases, the statements at the
> bottom should be the most restrictive and joins should be near the top.
> 
> 	select * 
> 	  from po,tickets
> 	 where po_id=material_po
> 	   and po_id=8888 ;
> 
> Would be the best.  Whereas
> 
> 	select *
> 	  from po,tickets
> 	 where po_id=8888
> 	   and po_id=material_po;
> 
> would do the join then select those tuples that have a po_id of 8888.
> 
> Of course this is probably what PostgreSQL is doing already without a
> requirement for the positioning.

This is not your mother's database.  We don't care about statement
ordering.  :-)


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (27+ messages)  latest in thread

Message-ID: <199907071645.MAA01466@candle.pha.pa.us>
Permalink:  ../199907071645.MAA01466@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199907071645.MAA01466@candle.pha.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: maillist@candle.pha.pa.us, raanders@altoplanos.net
  Subject: Re: [SQL] Good Optimization
  In-Reply-To: <199907071645.MAA01466@candle.pha.pa.us>
  References: <Pine.LNX.4.04.9907070807420.13901-100000@asgard.altoplanos.net> <199907071645.MAA01466@candle.pha.pa.us>

* 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