Re: [SQL] Good Optimization - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Good Optimization
Date
Msg-id 199907191437.KAA08753@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] Good Optimization  (secret <secret@kearneydev.com>)
List pgsql-sql
>     Why not let the user select how much time he wants the DB to spend on
> optimization?  maybe an explicit "FAST SELECT ..." will skip the costly steps
> for subsecond queries, or "OPTIMIZE SELECT" for the long(hour) queries that
> really need a lot of help :)... Or even a SET OPTION= for turning it on/off?

In most cases, the optimizer knows much better how long to optimize, and
the time it spends is usually very small.  Most time is spent in
executor.  Pre-6.5 optimizer had problems, so this was not true then.
--  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,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] Re: [HACKERS] Counting bool flags in a complex query
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Good Optimization