pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: Returning a bool on DELETE in a proc.
Date: Wed, 19 Jan 2005 14:35:21 -0700
Message-ID: <20050119213521.GA95945@winnie.fuhr.org> (raw)
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB16577@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB16577@neptun.sonorys.at>

On Wed, Jan 19, 2005 at 06:09:16PM +0100, KÖPFERL Robert wrote:
> >
> > Why SQL instead of PL/pgSQL if the former doesn't do what you need
> > and the latter does?
>
> I have the feeling that even complicated and boxed queries are faster or can
> be optimized by the planer than any PLpgsql. Isn't there a motule that has
> to be invoked?

PL/pgSQL might be more efficient than you think -- see the Overview
in the PL/pgSQL documentation for more information about how it
works.  I'd suggest making the function work first, and only then
worry about whether it's fast enough.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (8+ messages)

Message-ID: <20050119213521.GA95945@winnie.fuhr.org>
Permalink:  ../20050119213521.GA95945@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050119213521.GA95945@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, robert.koepferl@sonorys.at
  Subject: Re: Returning a bool on DELETE in a proc.
  In-Reply-To: <20050119213521.GA95945@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox