I am using R to connect to a PostgreSQL database. Connection is done using below function:
dbConnect(m, dbname=dbname, host=host, port=port, user=user, password=password)
m
is the driver (postgres).
But it does not allow me to set a particular schema name under which my tables are. How do I connect to a particular schema so that every time I don't have to prefix schema name to the table names?
Is there an equivalent statement in R for set search_path = 'myschema'
?