pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tjk@tksoft.com <tk@uno.tksoft.com>
To: pgsql-sql@postgreSQL.org
Subject: user defined function speeds
Date: Fri, 16 Jul 1999 15:24:05 -0700 (PDT)
Message-ID: <199907162224.PAA14483@uno.tksoft.com> (raw)
In-Reply-To: <Pine.BSF.4.10.9907161815460.38362-100000@scifair.acadiau.ca>


> > Good plan.  Although you could sort by a user-defined function result,
> > it's likely to be horribly slow (because user-defined functions are
> > slow:-().


What is the actual overhead from using a userdefined
function (a C function, say)?

Obviously there is an overhead involved in calling
any function. I would like to know what kind of issues 
are involved when using results of a user defined function for 
sorting. 

Are the results calculated only once, as one would expect,
for example.

Thanks,


Troy

Troy Korjuslommi                Tksoft OY, Inc.
tjk@tksoft.com                  Software Development
                                Open Source Solutions
                                Hosting Services








Message-ID: <199907162224.PAA14483@uno.tksoft.com>
Permalink:  ../199907162224.PAA14483@uno.tksoft.com/
Also on:    postgresql.org/message-id/199907162224.PAA14483@uno.tksoft.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tk@uno.tksoft.com
  Subject: Re: user defined function speeds
  In-Reply-To: <199907162224.PAA14483@uno.tksoft.com>
  References: <Pine.BSF.4.10.9907161815460.38362-100000@scifair.acadiau.ca> <199907162224.PAA14483@uno.tksoft.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