Re: UDF in C slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Inanc Seylan <inanc(dot)seylan(at)gmail(dot)com>
Cc: Alban Hertroys <haramrae(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: UDF in C slow
Date: 2012-05-11 15:55:23
Message-ID: 5875.1336751723@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Inanc Seylan <inanc(dot)seylan(at)gmail(dot)com> writes:
> It is IMMUTABLE. I attach the output of EXPLAIN both with and without
> the simple function (returning true only) in the query.

EXPLAIN ANALYZE would have been far more helpful. However, the thing
that jumps out at me here is all the seqscans on table "symbols".
Do you not have an index on symbols.id? If you do, perhaps there is
a datatype-mismatch problem preventing it from being used.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Inanc Seylan 2012-05-11 16:00:42 Re: UDF in C slow
Previous Message Vo, Catherine CTR DTIC Z 2012-05-11 15:23:30 backup script