> Does postgresql api has some function similar to
> mysql_real_escape_string()
> ?
Manual 27.3.4 says that libpq has C function PQescapeString(). If that
function is not globally accessible, you might be able to build it from
its source code.
Regards,
CN