Re: Predicate migration on complex self joins

From: decibel <decibel(at)decibel(dot)org>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Predicate migration on complex self joins
Date: 2009-07-13 20:48:44
Message-ID: 9E70B203-108C-4E94-8178-E6C6D737FD66@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jul 13, 2009, at 1:06 PM, Simon Riggs wrote:
> Not just because of this but I wonder if we might benefit from an
> optimizer setting specifically aimed at the foolishnesses of
> automatically generated SQL.

+1. And it's not just ORMs that do stupid things, I've seen crap like
this come out of users too (not this exact case, but similar).

Perhaps what we really want is an "optimization level" GUC so that
users can tell the backend how much overhead they want the optimizer
to spend on trying to work around stupidity... :)
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message decibel 2009-07-13 20:51:58 Re: [RFC] obtaining the function call stack
Previous Message Brendan Jurd 2009-07-13 20:46:28 Re: Launching commitfest.postgresql.org