Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
I can't connect to the server with following command:
con <- DBI::dbConnect(
drv = RPostgres::Postgres(),
host = "10.10.0.1",
port = 5432,
dbname = "postgres",
user = "user",
password = "1368798451"
#> Error in result_create(conn@ptr, statement) :
#> Failed to retrieve query result metadata: ERROR: unnamed prepared statement does not exist
With odbc package the connection works only with UseServerSidePrepare = No option in .odbc.ini. RPostgreSQL works without additional manipulations.
UseServerSidePrepare = No
PostgreSQL 9.3.20 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit
#>  '1.1.0'
The text was updated successfully, but these errors were encountered:
Interesting. RPostgres uses prepared statements by default, this might explain what we're seeing. Could this be a configuration issue on the server side?
Sorry, something went wrong.
Server's admin confirmed that the prepared statements disable on the server side. This was done to prevent performance problems.
So can you provide fallback mode for this case?
Unfortunately, RPostgres currently requires prepared statements, I'm not aware of a fallback mode. Not sure what's needed to provide one either.
How do I disable prepared statements on the server for testing?
I could not find information about disable the prepare statements.
This will be fixed once we have support for the immediate argument to dbGetQuery() and dbSendQuery().
Now discussed in #272.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
No branches or pull requests