Re: Porting SQL Server 2000 database to PostgreSQL

Поиск
Список
Период
Сортировка
От anony@dslextreme.com (anony)
Тема Re: Porting SQL Server 2000 database to PostgreSQL
Дата
Msg-id b6eacd5.0405202249.2ef97502@posting.google.com
обсуждение исходный текст
Ответ на Porting SQL Server 2000 database to PostgreSQL  (REarly@jswcoinc.com (Rod Early))
Ответы Re: Porting SQL Server 2000 database to PostgreSQL  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-general
1. stored procedures are now called functions

2. unlike ms tsql, in postgres query analyzer you can't test
conditional statements and variables outside of a function. this makes
debugging really hard.

3. inside the function single quotes must be escaped because your
function is entered in as a string literal.

4. to return recordsets you must create a custom return TYPE and use a
FOR loop with %ROWTYPE to interate thru the data.

5. you can overload functions. two function with the same name but
different input fn_foo(int) OR  fn_foo(int, varchar).

6. temp tables don't work well in functions unless you make them
dynamically with execute. instead use normal tables and your pid.

favorite editor: editplus w/ psql definitions

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

Предыдущее
От: anony@dslextreme.com (anony)
Дата:
Сообщение: feature idea – automatic update tracking using date fields – feedback pls
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Web DB Management tool