pg_fieldsize

(PHP 3, PHP 4 >= 4.0b1)

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.