Re: immutable functions vs. join for lookups ?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Dawid Kuroczko <qnex42(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: immutable functions vs. join for lookups ?
Date: 2005-04-20 08:53:12
Message-ID: 42661878.6010802@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> Yay! You're right! I wonder why have I forgotten about LANGUAGE SQL. :)
> It's 30 seconds vs 5 seconds for CASE ... END insisde PLpgsql vs CASE...END
> LANGUAGE SQL. :) I.e. its almost the same as in-place entered SQL.

Probably because simple SQL functions get inlined by the optimiser.

Chris

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dawid Kuroczko 2005-04-20 08:55:44 Re: How to improve db performance with $7K?
Previous Message Christopher Kings-Lynne 2005-04-20 08:52:48 Re: immutable functions vs. join for lookups ?