Re: [SQL] Good Optimization

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "Roderick A(dot) Anderson" <raanders(at)altoplanos(dot)net>
Cc: PG-SQL <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Good Optimization
Date: 1999-07-07 16:45:07
Message-ID: 199907071645.MAA01466@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 1999-07-07 17:22:57 Re: [SQL] Good Optimization
Previous Message Roderick A. Anderson 1999-07-07 16:10:13 Re: [SQL] Good Optimization