Re: speed of server side languages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: speed of server side languages
Дата
Msg-id 20884.1033743875@sss.pgh.pa.us
обсуждение исходный текст
Ответ на speed of server side languages  (darkcity@houston.rr.com (Val Ventura))
Список pgsql-general
darkcity@houston.rr.com (Val Ventura) writes:
> I am new to PostgreSQL and I'm looking to port a MSSQL database. I am
> currently working on the stored procedures, and I'm trying to
> understand when and why I should choose SQL vs. PL/pgSQL vs. all the
> others, as far as performance goes.

For stuff that involves database accesses, plpgsql will almost always
win, because it's the only one we have that caches query plans.

If you are doing simple calculations, text-mashing, etc, then you might
be best off with plperl or pltcl (choose according to taste).  SQL and
plpgsql are overkill for simple arithmetic and don't have very extensive
text-manipulation capabilities.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Rows ordered
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PL/pgSQL