Skip to content
New issue

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? Sign in to your account

calling r functions freezes Postgres 12 on Windows 10 #77

Closed
ralikwen opened this issue Dec 12, 2020 · 4 comments
Closed

calling r functions freezes Postgres 12 on Windows 10 #77

ralikwen opened this issue Dec 12, 2020 · 4 comments

Comments

@ralikwen
Copy link

ralikwen commented Dec 12, 2020

I have freshly installed

  • postgresql-12.5-1-windows-x64.exe
  • R-3.6.0-win.exe

Downloaded and placed the files to their folders for

  • plr-b479c024-pg12-R3.6.0-x64-Release.zip
  • created a new empty database
  • created plr extension
  • ran checks
    Checked that [64-bit] C:\R\R-3.6.0 works in R-Studio
    SELECT public.plr_environ() - returns (R_HOME,"C:\R\R-3.6.0")
    SELECT public.plr_version() - returns 8.4

SELECT public.r_version() - never returns and completely freezes Postgres (must delete pid file to restart)

I am not sure what could I check or change.
Postgres log doesn't contain any useful info.

@jconway
Copy link
Collaborator

jconway commented Dec 13, 2020

Sounds like postgres is blocked trying to load/read R.dll or something similar (blocked I/O). Could it be antivirus daemon or Windows Defender maybe? Try looking at the Windows logs (event viewer) for a clue maybe...

@ralikwen
Copy link
Author

ralikwen commented Jan 6, 2021

For some reason it is still using the old (R-3.3.1) R directory.
I couldn't find out how to change that but renaming the new (R-3.6.0) to the old solved the problem.
It's not ideal but works for now.

@jconway
Copy link
Collaborator

jconway commented Jan 6, 2021

Maybe the value of R_HOME in the environment? Or PATH? We used to provide an INSTALL.txt that said (among other things):

Ensure the following environment variables are set prior to starting PostgreSQL:

PATH=<pgdir>\bin;<pgdir>\lib;<rdir>\bin\x64;$PATH
R_HOME=<rdir>

@davecramer
Copy link
Collaborator

we still provide installation instructions https://github.com/postgres-plr/plr/blob/master/userguide.md#installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants