Re: call by reference vs call by value - Mailing list pgsql-sql

From David G. Johnston
Subject Re: call by reference vs call by value
Date
Msg-id CAKFQuwaEQ3+q3kUu6TVgTBV08kj2ShoUNKbADTx1kYK1ybF==Q@mail.gmail.com
Whole thread Raw
In response to call by reference vs call by value  (Michael Moore <michaeljmoore@gmail.com>)
Responses Re: call by reference vs call by value  (Michael Moore <michaeljmoore@gmail.com>)
List pgsql-sql
On Tue, Dec 8, 2015 at 12:07 PM, Michael Moore <michaeljmoore@gmail.com> wrote:
How are variables in pg/psql functions passed? I'm sure this is documented somewhere. I looked but no joy. A link would be great! TIA

​I doubt its documented anywhere since the concept of "by reference" is not part of the language.  The concept is also not part of SQL.

If you want a better explanation you should provide some code for us to comment upon.

David J.


pgsql-sql by date:

Previous
From: Michael Moore
Date:
Subject: call by reference vs call by value
Next
From: Michael Moore
Date:
Subject: How to manually load RETURNS SETOF RECORD?