Re: call by reference vs call by value

From: Pavel Stehule <pavel(dot)stehule(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 20:29:44
Message-ID: CAFj8pRBXW4O8VPghNG2Q-x8O+_5YvrZDOu6FegVg0K8OaaxErg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi

2015-12-08 20:07 GMT+01:00 Michael Moore <michaeljmoore(at)gmail(dot)com>:

> 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
>

It is simply - small values are passed by value (to 8bytes), bigger are
passed as reference - but all is internal and cannot be controlled from
user space.
Search keywords "varlena", "datum", "toast"

Regards

Pavel

> Mike
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2015-12-08 20:31:14 Re: call by reference vs call by value
Previous Message Michael Moore 2015-12-08 20:25:13 Re: call by reference vs call by value