pg_result was PHP3 and died with PHP 4.2; pg_fetch_result is “new”

thanks to PHP4 docs archive and nerville
Merge branch 'Branch_5_1' into Branch_5_2

Conflicts:
	src/common/include/database-pgsql.php