They both have prepared statements. pg_* is a wrapper to libpq. Right?
I like the PDO in PHP, but I\'m not going to change the database in the future. Which library
IMHO using the functions that approaches directly concrete DB (like pg_, oci_, mysql[i]_ etc.) is always a little bit quicker then using a PDO or any DBMS layer (Doctrine, dibi, etc.).
But using PDO or any DBMS layer in OOP architecture should be better approach (IMHO, again), as You learn to use this layer and thus will use it on whatever DB engine is behind. Of course if You change the DB engine within the app You do not have to bother with rewriting of whole the app.
Even if You are not planning to change the DB engine I would recommend using of PDO. But thats just my opinion :-)