Re: Simple join optimized badly? - Mailing list pgsql-performance

From Joshua D. Drake
Subject Re: Simple join optimized badly?
Date
Msg-id 452B11FF.5020904@commandprompt.com
Whole thread Raw
In response to Re: Simple join optimized badly?  ("Craig A. James" <cjames@modgraph-usa.com>)
Responses Re: Simple join optimized badly?  ("Jim C. Nasby" <jim@nasby.net>)
List pgsql-performance
> Imagine I got run over by a train, and someone was reading my code.
> Which would be easier for them to maintain: Code with weird SQL, or code
> with sensible, well-written SQL and explicit hints?

You forgot the most important option:

Code with appropriate documentation about your weird SQL.

If you document your code, your argument is moot.

Joshua D. Drake



--

   === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
   Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/



pgsql-performance by date:

Previous
From: "Craig A. James"
Date:
Subject: Re: Simple join optimized badly?
Next
From: "Merlin Moncure"
Date:
Subject: Re: odd variances in count(*) times