Re: Sun acquires MySQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sun acquires MySQL
Дата
Msg-id 9203.1200938581@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Sun acquires MySQL  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: Sun acquires MySQL  (Guy Rouillier <guyr-ml1@burntmail.com>)
Список pgsql-general
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> when you use plpgsql as glue of SQL statements, then speed of plpgsql
> speed of SQL statements and there isn't problem. Your example is
> real and I understand well, but bottleneck isn't in interpretation, is
> it in evaluation of basic types, where C do this work simply and fast
> and plpgsql call SQL expression evaluator. I am not sure if its
> possible to write compiler for all supported platforms. I thinking
> about plpgsql->c translator with some intelligence for detecting some
> simply operations. Any sponsors?

That's probably not worth the amount of effort it would take.

The bottom line is: if you're doing computationally expensive
non-SQL-query operations, plpgsql is simply the wrong language for the
job ... and it's not like there are not plenty of others to choose from.
I'd expect plperl or even pltcl to be faster for such things (I have no
idea about the speed of other scripting languages such as python or
ruby).  Or pl/java.  Also, if what you're doing fits within its
capabilities, pl/R is an interesting alternative.

            regards, tom lane

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: postgres.org src build vs. enterprisedb installer
Следующее
От: Luca Arzeni
Дата:
Сообщение: Re: varchar sort ordering ignore blanks