Re: SQL SERVER migration to PostgreSql - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: SQL SERVER migration to PostgreSql
Date
Msg-id 53157133-cdcd-08f4-cd04-6b94ac74ab57@gmx.net
Whole thread Raw
In response to SQL SERVER migration to PostgreSql  (İlyas Derse <ilyasderse@gmail.com>)
List pgsql-general
İlyas Derse schrieb am 07.11.2019 um 14:28:
> I'm trying to migration to PostgreSql from SQL Server. I have Stored
> Procedures what have output parameters and returning tables.But you
> know what, we can not returning tables in stored procedures in
> PostgreSql and we can not use output parameters in functions in
> PostgreSql.

The correct migration path is to rewrite them to set-returning functions and use them in the FROM clause:

so instead of 

   sp_foobar 42;

use

  select *
  from fn_foobar(42);

Thomas



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: broken backup trail in case of quickly patroni switchback andforth
Next
From: Jehan-Guillaume de Rorthais
Date:
Subject: Re: logical replication - negative bitmapset member not allowed