Skip to content

dbWriteTable on virtual linux box

1 message · Tomoaki NISHIYAMA

#
Hi,
This is something different from my understanding.
dbSendQuery just sends query and does not end the session.
On the contrary, it leaves the connection open and in an unfinished  
state,
and the second dbGetQuery will open a new connection, so that you get
So, please instead try
dbGetQuery(conn, "SET search_path = myschema")
dbGetQuery(conn, "SHOW search_path")
To my understanding,
dbGetQuery(conn, "SET search_path = myschema")
dbWriteTable(conn, "table_name", ...)
will write the dataframe to myschema.table_name