I just know how to connect R to Redshift using RPostgreSQL and dplyr. But I am confused about a couple of things:
When I want to show something on the screen, like head(a) where a is a result retrieving from Redshift, it is gonna be really slow.…
I have a table myschema.fruits in a postgresql database mydatabase. From within an R script I would like to insert a single row to that table, at the end os my script. The table row has 3 columns type, taste and color. Those I have in 3 different…
I'm having trouble connecting my R client to redshift through the RPostgreSQL package, despite it working very easily through psql. I've tried downloading and sourcing the redshift-ssl-ca-cert.pem file, but this still doesn't seem to work. Any ideas…
I have loaded a sql table to a tbl using dplyr (rr is my db connection) :
s_log=rr%>%tbl("s_log")
then extracted three columns and put them in a new tbl :
id_date_amount=s_log%>%select(id,created_at,amount)
when i run head (id_date_amount) it…
I have about 10,000 csv files that I am trying to import into Postgres. The csv file size ranges from about 500MB to 1GB each. I'm importing each file into R first as a data frame because I have to do a bit of preprocessing on the raw data (like…
I can not connect PostgreSQL(on Heroku) with RPostgreSQL on Windows(64bit).
I can connect local postgresql(not ssl) with RPostgreSQL on Windows. I can connect PostgreSQL on Heroku from PgAdmin on Windows. I can connect PostgreSQL on Heroku with…
I want to connect R to postgresql through Renjin for which I am using
engine.eval("library(RPostgreSQL)");
getting folllowing error
org.springframework.web.util.NestedServletException: Request processing failed;
nested exception is…
I am new to PostgreSQL and I'm trying to use R to write table to PostgreSQL. See the R code below; make some reproducible data frame first:
> Time<-c('201512', '201511', '201510')
> Department<-c('ABC', 'BCA', 'NBA')
> Pro_Type<-c('standard',…
I am new to connecting to Redshift via R, I have read other questions but am still getting an error when I attempt to create a table.
I have successfully set up a connection and I thought set up the table successfully:
redshiftcon <- dbConnect(mm,…
My Postgres version: "PostgreSQL 9.4.1, compiled by Visual C++ build
1800, 32-bit"
The table which i am going to deal with; contains columns
eventtime - timestamp without timezone
serialnumber - character varying(32)
sourceid - integer
and 4…
I'm trying to account for infinite dates in PostgreSQL in a way that corresponds with the infinite date values described in this question. However, I can't get the code to work quite right.
df <- data.frame(dates = c("2012-08-06", "2014-05-05",…
Using the RPostgreSQL package, is there a way to connect to a remote PostgreSQL instance other than hardcoding the credentials into the dbConnect method?
As far as I can tell, this is the only way to do it:
dbConnect(drv, host='some.com',…
I have a problem with import table using RPostgreSQL. I mean, one column is bigint format, and when I create simple query:
df<- dbGetQuery(con, "
SELECT euid
FROM table
LIMIT 5;")
I…
I'm currently playing around with accessing AWS Redshift through R via the RPostgreSQL package. Everything works fine until I try to submit more complex queries which take longer to run. When submitting these queries the connection times out as…