pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: İlyas Derse <ilyasderse@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: SQL SERVER migration to PostgreSql
Date: Thu, 7 Nov 2019 07:02:28 -0800
Message-ID: <e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com> (raw)
In-Reply-To: <CALcdmyTQjKcKfQBBrYJgq_2h59BvSTT3yACC-mYMYcbReZ2yHw@mail.gmail.com>
References: <CALcdmyTQjKcKfQBBrYJgq_2h59BvSTT3yACC-mYMYcbReZ2yHw@mail.gmail.com>

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





view thread (4+ messages)  latest in thread

Message-ID: <e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com>
Permalink:  ../e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com/
Also on:    postgresql.org/message-id/e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ilyasderse@gmail.com
  Subject: Re: SQL SERVER migration to PostgreSql
  In-Reply-To: <e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com>
  References: <CALcdmyTQjKcKfQBBrYJgq_2h59BvSTT3yACC-mYMYcbReZ2yHw@mail.gmail.com> <e118e8cb-5a11-78a9-4f32-ece965412eb1@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox