pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Schwarz, Karl <Karl.Schwarz@ngc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: function performance vs in-line sql
Date: Thu, 08 Mar 2007 17:49:41 +0000
Message-ID: <45F04CB5.4060204@archonet.com> (raw)
In-Reply-To: <9E64800D28DF264DB32B0309B6F222D5188548@xcgny105.northgrum.com>
References: <9E64800D28DF264DB32B0309B6F222D5188548@xcgny105.northgrum.com>

Schwarz, Karl wrote:
> Is there something basic I am missing here with the use of a function. I
> am no database expert, but my assumption was that a function would give
> me better results than in-line sql.

Not necessarily. Usually it means the planner has less information to go on.

We'll need more information though - table definitions, queries, how is 
the function called etc.

-- 
   Richard Huxton
   Archonet Ltd



view thread (4+ messages)  latest in thread

Message-ID: <45F04CB5.4060204@archonet.com>
Permalink:  ../45F04CB5.4060204@archonet.com/
Also on:    postgresql.org/message-id/45F04CB5.4060204@archonet.com

 · 

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-performance@postgresql.org
  Cc: dev@archonet.com, Karl.Schwarz@ngc.com
  Subject: Re: function performance vs in-line sql
  In-Reply-To: <45F04CB5.4060204@archonet.com>

* 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