Re: Which is faster SQL or PL/PGSQL

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Which is faster SQL or PL/PGSQL
Дата
Msg-id 200310192229.40259.josh@agliodbs.com
обсуждение исходный текст
Ответ на Which is faster SQL or PL/PGSQL  ("George A.J" <jinujosein@yahoo.com>)
Список pgsql-sql
George,

> i am converting an MSSQL database to Postgres. there is a lot of procedures
> to convert.
>
> which language is best for functions, SQL or plpgsql.

If you're porting from T-SQL, you should use PL/pgSQL.  However, you will have 
to re-code many of your procedures by hand, as T-SQL and PL/pgSQL have 
substantially different syntax for control structures and cursors.

See the porting articles on techdocs.postgresql.org

> which is faster . i am using postgres 7.3.2

You should upgrade to the 7.3.4 if possible as it has some bug fixes missing 
in 7.3.2.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Which is faster SQL or PL/PGSQL
Следующее
От: "Kumar"
Дата:
Сообщение: Max input parameter for a function