PHP + PostgreSQLで静的プレースホルダを利用する方法も教えて頂けますと助かります。
http://php.net/manual/ja/function.pg-query-params.php
pg_query_params() は PostgreSQL 7.4 以降の接続でのみ サポートされます。
http://www.postgresql.org/docs/7.4/interactive/release-7-4.html
New client-to-server protocol
The new protocol adds ..., parameter values separated from SQL commands, prepared statements available at the protocol level, and ....
また、
https://github.com/php/php-src/blob/master/ext/pgsql/pgsql.c#L1992
http://www.postgresql.org/docs/9.4/static/libpq-exec.html
PQexecParams is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0.
などからpg_query_params()はプロトコルの静的プレースホルダ対応に依存している事が推察出来き、静的プレースホルダしか対応しないと推察出来る。
したがって、7.4以降を使えば静的プレースホルダを利用出来るはず。