Remove unused _php_pgsql_escape_identifier(). Add escape detection to avoid double escape.