Ranges consist of a pair of values and are generally used to initialise the bounds of array and bitmap types. Ranges may not contain nulls.
The int4 type is used to record a simple nullable integer. This is typically used to record the id of the connected user in a session.
The following functions comprise the Veil basic types API:
function veil_init_range(text, int4, int4) returns int4
This defines a range, and returns the extent of that range.
function veil_range(text) returns veil_range_t
This returns the contents of a range. It is intended primarily for interactive use.
function veil_int4_set(text, int4) returns int4
Sets an int4 variable to a value, returning that same value.
function veil_int4_get(text) returns int4
Returns the value of an int4 variable.
Next: Bitmaps and Bitmap Refs