pg_fieldsize

(PHP 3, PHP 4 )

pg_fieldsize --  Returns the internal storage size of the named field

Description

int pg_fieldsize (int result_id, int field_number)

Pg_fieldsize() will return the internal storage size (in bytes) of the field number in the given PostgreSQL result. Field numbering starts at 0. A field size of -1 indicates a variable length field. This function will return false on error.