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

From Pavel Stehule
Subject Re: call by reference vs call by value
Date
Msg-id CAFj8pRBXW4O8VPghNG2Q-x8O+_5YvrZDOu6FegVg0K8OaaxErg@mail.gmail.com
Whole thread Raw
In response to call by reference vs call by value  (Michael Moore <michaeljmoore@gmail.com>)
List pgsql-sql
Hi

2015-12-08 20:07 GMT+01:00 Michael Moore <michaeljmoore@gmail.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


pgsql-sql by date:

Previous
From: Michael Moore
Date:
Subject: Re: call by reference vs call by value
Next
From: Pavel Stehule
Date:
Subject: Re: call by reference vs call by value