Re: Learning to rephrase equivalent queries?

From: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Learning to rephrase equivalent queries?
Date: 2011-11-10 21:50:38
Message-ID: CAM6mieKge401Qn0eSQMDYAeeav1qRprcE78AnwG4zixXhhMqxg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 11 November 2011 00:04, Jay Levitt <jay(dot)levitt(at)gmail(dot)com> wrote:
> Sometimes the planner can't find the most efficient way to execute your
> query. Thanks to relational algebra, there may be other, logically
> equivalent queries that it DOES know how to optimize.
>
> But I don't know relational algebra.  yet.  (Date/Codd is a sleeping pill.)
> I need more experience first.
>
> Are there blogs, guides, rules of thumb, common refactoring patterns out
> there somewhere?  I'm looking for a list of basic equalities, the SQL
> equivalent of:

Have a look here: http://en.wikipedia.org/wiki/Relational_algebra
plus "External links" section

--
Ondrej Ivanic
(ondrej(dot)ivanic(at)gmail(dot)com)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tarlika Elisabeth Schmitz 2011-11-10 22:17:40 PL/pgSQL: SELECT INTO variables - no result
Previous Message Tom Lane 2011-11-10 21:38:20 Re: Updating Geometry