psycopg2默认是连接public
psycopg2.connect(host="localhost", port="5432", user="postgres", password="password", database="database", options="-c search_path=otherSchema,public")
想连接其他模式,可以添加options:options="-c search_path=portal"
如:要连接system,则为options="-c search_path=system"