One problem is that the dbWriteTable method from the RPostgreSQL package will not actually accept the HEADER flag (https://github.com/cran/RPostgreSQL/blob/master/R/PostgreSQLSupport.R#L570)
This breaks the current implementation.
Possible workarounds:
- use the
data.frame method -- but that will be slow and memory inefficient
- don't write the header row in the CSV if you are using Postgres. Kludgy.
- wait for @hadley et al to get the alternative
RPostgres package working. This will probably be the long-term solution, but I don't know how long it will take.
I believe this problem applies to all etl packages that use the dbWriteTable character method.
One problem is that the
dbWriteTablemethod from theRPostgreSQLpackage will not actually accept theHEADERflag (https://github.com/cran/RPostgreSQL/blob/master/R/PostgreSQLSupport.R#L570)This breaks the current implementation.
Possible workarounds:
data.framemethod -- but that will be slow and memory inefficientRPostgrespackage working. This will probably be the long-term solution, but I don't know how long it will take.I believe this problem applies to all
etlpackages that use thedbWriteTablecharactermethod.