Re: call by reference vs call by value

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Michael Moore <michaeljmoore(at)gmail(dot)com>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: call by reference vs call by value
Date: 2015-12-08 19:15:32
Message-ID: CAKFQuwaEQ3+q3kUu6TVgTBV08kj2ShoUNKbADTx1kYK1ybF==Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Dec 8, 2015 at 12:07 PM, Michael Moore <michaeljmoore(at)gmail(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Moore 2015-12-08 19:34:09 How to manually load RETURNS SETOF RECORD?
Previous Message Michael Moore 2015-12-08 19:07:49 call by reference vs call by value