Re: Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster)
Date: 2005-01-13 21:37:50
Message-ID: 13771.1105652270@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> writes:
> CREATE OR REPLACE FUNCTION delitel(int, int) RETURNS int AS '
> DECLARE a integer; b integer;
> BEGIN a := $1; b := $2;
> WHILE a <> b LOOP
> IF a > b THEN a := a - b; ELSE b := b - a; END IF;
> END LOOP;
> RETURN a;
> END; ' LANGUAGE plpgsql;

And?

(ie, what test case are you talking about?)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Palle Girgensohn 2005-01-13 21:57:27 Re: Bug? 8.0 does not use partial index
Previous Message Tom Lane 2005-01-13 21:33:58 Re: Bug? 8.0 does not use partial index