Skip to content

Connection works with RPostgreSQL but not with RPostgres #248

Closed

Description

@OMalytics

I have a database at AWS that I can access with RPostgreSQL but not with RPostgres.

This works:

drv <- dbDriver("PostgreSQL")

con <- DBI::dbConnect(
  drv, 
  dbname = "****",
  host = "****.amazonaws.com", 
  port = 5432,
  user = "****",
  password = "****")

This doesn't:

drv <- Postgres()

con <- DBI::dbConnect(
  drv, 
  dbname = "****",
  host = "****.amazonaws.com", 
  port = 5432,
  user = "****",
  password = "****")

I receive this message instead:

Error: server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.
> sessionInfo()
R version 4.0.1 (2020-06-06)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.2

Activity

  1. icct-uwetietge commented on Jul 24, 2020

    @icct-uwetietge

    I'm experiencing the same problem connecting to Azure PostgreSQL. I can connect using RPostgreSQL but not RPostgres.

    R version 4.0.2 (2020-06-22)
    Platform: x86_64-apple-darwin17.0 (64-bit)
    Running under: macOS Catalina 10.15.5

  2. krlmlr commented on Sep 28, 2020

    @krlmlr
    Member

    This is weird. Could it be a macOS specific problem? Does it work from a Linux or Windows machine?

  3. krlmlr commented on Dec 27, 2020

    @krlmlr
    Member

    To replicate this I need to find a Mac and provision a Redshift/Postgres database (if it's a Mac issue).

    @OMalytics @alexsanjoseph: Can you confirm if a source reinstall fixes the problem?

  4. added
    install
    on Sep 6, 2021
  5. OMalytics commented on Sep 8, 2021

    @OMalytics
    Author

    Hi @krlmlr, this works for me. Thanks.

  6. alexsanjoseph commented on Sep 8, 2021

    @alexsanjoseph

    Sorry, not in a situation where I can reproduce this anymore 😞

  7. github-actions commented on Sep 11, 2022

    @github-actions
    Contributor

    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.

  8. locked and limited conversation to collaborators on Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    install

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions