Re: plpgsql return select from multiple tables

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Artis Caune <artis(dot)caune(at)gmail(dot)com>
Cc: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql return select from multiple tables
Date: 2008-09-15 04:28:04
Message-ID: 48CDE454.2010103@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Artis Caune wrote:

> 'IF FOUND THEN' or 'IF variable = X THEN' features are only in plpgsql, i think.

You can frequently achieve similar effects with COALESCE and/or CASE
expressions in normal SQL. This can be a LOT faster.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-09-15 04:32:06 Re: [GENERAL] PostgreSQL
Previous Message Tom Lane 2008-09-15 04:12:29 Re: Out of memory on SELECT (from sort?) in 8.3