I'm writing a contrib of postgresql and I want to use PyImport_ImportModule to import a python module, which imports psycopg2.
Then I find that PyImport_ImportModule returns null if I import psycopg2 in the python code.
Could someone please tell me why or how to solve it?