Re: Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster)
Date
Msg-id 13771.1105652270@sss.pgh.pa.us
Whole thread Raw
In response to Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster)  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Responses Re: Slow PL/pgSQL 8.0.RC5 (7.4.6. 3times faster)  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List pgsql-hackers
Pavel Stehule <stehule@kix.fsv.cvut.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug? 8.0 does not use partial index
Next
From: Palle Girgensohn
Date:
Subject: Re: Bug? 8.0 does not use partial index