How to specify Schema in psycopg2 connection method?
问题 Using the psycopg2 module to connect to the PostgreSQL database using python. I'm able to execute all of my queries using the below connection method. Now I want to specify a different schema other than the public to execute my SQL statements. Is there any way to specify the schema name in the connection method? conn = psycopg2.connect(host="localhost", port="5432", user="postgres", password="password", database="database", ) I tried to specify schema directly inside the method. schema=