Re: cursors and function question

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: armand pirvu <armand(dot)pirvu(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: cursors and function question
Date: 2018-02-13 19:07:20
Message-ID: CAKFQuwb_H4jQvibPXKJJd_hFN-fzvgLd8+qjr9Q5xoo8vy_NZg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 13, 2018 at 12:03 PM, armand pirvu <armand(dot)pirvu(at)gmail(dot)com>
wrote:

>
> ERROR: RETURN cannot have a parameter in function returning set
> LINE 10: return var2;
> HINT: Use RETURN NEXT or RETURN QUERY.
>
>
> and it just sits there
>
> Any hints ?
>
>
https://www.postgresql.org/docs/10/static/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-02-13 19:13:58 Re: pglogical in postgres 9.6
Previous Message armand pirvu 2018-02-13 19:03:05 Re: cursors and function question