Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSjXW-0004Bl-NJ for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:17:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSjXU-0001F6-UL for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:17:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSjXU-0001Ey-H0 for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:17:36 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iSjXM-0004MB-Rz for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:17:35 +0000 Received: from [10.8.0.75] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPSA (Nemesis) id 1N1PPJ-1hnwUw2msd-012sMN for ; Thu, 07 Nov 2019 16:17:25 +0100 Subject: Re: SQL SERVER migration to PostgreSql To: pgsql-general@lists.postgresql.org References: From: Thomas Kellerer Message-ID: <53157133-cdcd-08f4-cd04-6b94ac74ab57@gmx.net> Date: Thu, 7 Nov 2019 16:17:22 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:IqfM1fk1FpoaopZQ6BGYLUQ7SmJjGsR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9SPPZZDb4mpFl65E3APcsZAMykymHQO4ZiAkbW/RuNGevbsQ0KGQX+I W/LyUJ0MRU4bf+qj2Vaz8i8OBD4flKVDBP9TbsHn8= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk İ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