Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?
Дата
Msg-id CAKz==bJ+pyk=ninFRs1nTpBG0hm4eefaLY9-nyae5wShTo7_pA@mail.gmail.com
обсуждение исходный текст
Ответ на PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?  (testman1316 <danilo.ramirez@hmhco.com>)
Ответы Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?  (Kevin Grittner <kgrittn@ymail.com>)
Список pgsql-hackers


Em segunda-feira, 4 de agosto de 2014, testman1316 <danilo.ramirez@hmhco.com> escreveu:

SET SERVEROUTPUT ON
SET TIMING ON

DECLARE
  n NUMBER := 0;
BEGIN
  FOR f IN 1..10000000
LOOP
    n := SQRT (f);
  END LOOP;

 
In addition to the other suggestions that have been posted (using a procedural language more suitable to mathematical ops, etc) I noticed that you are using a RAISE in the PostgreSQL version that you are not in Oracle.

I am curious as to what the difference is if you use the RAISE in both or neither cases.

Roberto 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pg_receivexlog add synchronous mode
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: WAL format and API changes (9.5)