Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group