pg_field_type returns a string containing the base type name of the given field in the given result instance.
If the field uses a PostgreSQL domain (rather than a basic type), it is the name of the domain's underlying type that is returned, rather than the name of the domain itself.
This function used to be called pg_fieldtype.
An PgSql\Result instance, returned by pg_query, pg_query_params or pg_execute(among others).
Field number, starting from 0.
A string containing the base name of the field's type.
|8.1.0||The result parameter expects an PgSql\Result instance now; previously, a resource was expected.|