Re: Postgres for SQL Server users

Поиск
Список
Период
Сортировка
От Michel Pelletier
Тема Re: Postgres for SQL Server users
Дата
Msg-id CACxu=vJO+i4NJky3UoGwK75KZ1LF24O_nfiPzdWMHojpYouQuw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Postgres for SQL Server users  (Adam Brusselback <adambrusselback@gmail.com>)
Ответы Re: Postgres for SQL Server users
Список pgsql-general
On Mon, May 6, 2019 at 2:49 PM Adam Brusselback <adambrusselback@gmail.com> wrote:
I think the main "gotcha" when I moved from SQL Server to Postgres was I didn't even realize the amount of in-line t-sql I would use to just get stuff done for ad-hoc analysis. Postgres doesn't have a good way to emulate this. DO blocks cannot return resultsets, so short of creating a function and dropping it, it's not possible to get the same workflow.

Just ruminating here, and this has probably already been discussed in the past, but I've always wanted something like a 'SELECT DO [LANGUAGE ...] RETURNS rettype | TABLE (...) $$ RETURN [NEXT | QUERY] ... $$; but haven't had any serious problem with creating/dropping functions like you mentioned.

-Michel
 
The lack of GUI tooling was also a huge "whoa" moment for me, which I still grapple with.

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Postgres for SQL Server users
Следующее
От: Sathish Kumar
Дата:
Сообщение: Re: Import Database