ATTENTION!!

For all who develop under Postgres with PHP

The function pg_exec no longer exists

There is a total rewrite of these things with new features
For all PHP-Postgres guys take a look at
pg_querry