Re: speeding up a select with C function?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: David Teran <david(dot)teran(at)cluster9(dot)com>
Cc: PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Re: speeding up a select with C function?
Date: 2004-03-09 14:46:22
Message-ID: 404DD8BE.5080504@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>> Don't bother with C function, use SQL function instead. You could get
>> a 50% speedup.
>>
> Is this always the case when using SQL instead of the C API to get
> values or only the function 'call' itself? We are thinking to use C
> functions which are optimized for the G5 altivec unit.

SQL functions are stored prepared, so there is less per-call query
planning overhead. I'm not sure there'd be much advantage to doing them
in C...

Chris

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-03-09 15:37:30 Re: speeding up a select with C function?
Previous Message David Teran 2004-03-09 12:02:41 Re: speeding up a select with C function?