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 1iSjJp-0003ge-SF for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:03:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSjJo-0007AE-K8 for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:03:28 +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 1iSjIw-00079I-MO for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:02:35 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iSjIt-0004F1-9c for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:02:33 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C4D0C20E15; Thu, 7 Nov 2019 10:02:29 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 07 Nov 2019 10:02:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=+ hJ8g09zV19bA5BcuvlkHk7WvwPocsclbhmOdRzCYTg=; b=kdmKhPOzX2x4PyGCu lUNhxmI069HgLB4OaTl0Zvvp8c9BTe+T4NwTlBlXcDdsltSwiMJQ9vAm3XePDP0j HELbfzK2mSqNxrvEJlj38W7oDqtDGYd06KyifORL9NBirNlkp+8DuYADS1sR+29d dmaF2wCXg8/HCgx+9lcS11kutIEXn0aXMmUhPAotnCuLJSdQP8yrA7dD5J1FifOa kXjQCjAcU7qkV/9WO5ontpeCmNxfJM9b2vtMPjmoRJNe0QfgexzpUtga54ZqZMLb hQLiLWvgwsksBeh0JH+g20dOlTK3a8GFsess0Yj7K9vvTaUmteXw1cczGoKNA+fS WCP8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=+hJ8g09zV19bA5BcuvlkHk7WvwPocsclbhmOdRzCY Tg=; b=RkE9+f8BdXU/dcV3+fYzp6dMcqap/Ar2noz9uqVYQJWC5OfiQrFCj+lP2 VKxHrzxFRKmKN3JqxsIp8MHM1eLu2f2ra+WOJkSkfuFbVTBaFESX7g2Rf5osRGSn QjRh6SvrPEkQRbqAyHylhuWxZwR0VgjbjMw0nUakgCVkeew5L3xQPs1PeIRLI+Eq 9BwImiLhHNDSMD/kOT4Y+XEQZNv8RRifMG0IJQVGWfY7foN51W9eZWxu54CVRAoJ b9J6R08M55oORf9O1pnSOsIZAGn2y22VeLDYbjYb+rkekUIHlw7O9zBuygv5y5nx /AQ2RZgdWy77Jlr41Pc29zFdfxPzw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudduledgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvddu vddrudeffedrudekleenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.133.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 133563060065; Thu, 7 Nov 2019 10:02:28 -0500 (EST) Subject: Re: SQL SERVER migration to PostgreSql To: =?UTF-8?Q?=c4=b0lyas_Derse?= , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 7 Nov 2019 07:02:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/7/19 5:28 AM, İlyas Derse wrote: > 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. What version of Postgres? > > So i did not find to solves this problem. Anybody have an idea ? Start here: https://www.postgresql.org/docs/11/plpgsql-overview.html#PLPGSQL-ARGS-RESULTS https://www.postgresql.org/docs/11/plpgsql-declarations.html#PLPGSQL-DECLARATION-PARAMETERS https://www.postgresql.org/docs/11/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING If that does not help then post an example of what you are trying to do. -- Adrian Klaver adrian.klaver@aklaver.com