php/php-src — pull request #556 by silentroach (2014-01-09 13:07:02+00:00)
Title: Additional attribute to disable column types resolving to native in PDO #64542

PDO/pgsql function `get_column_meta()` return column type id and its native type.
To get native_type it make an sql-request: `SELECT TYPNAME FROM PG_TYPE WHERE OID=%d` **for each** column. It is very slow.

So, this is workaround:
Add new statement option `PGSQL_ATTR_DISABLE_RESOLVE_NATIVE_TYPE_ON_META`, which prevents resolving "native_type".