Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Should pg_tester work in Linux? #6

Open
janpipek opened this issue Dec 8, 2017 · 1 comment
Open

Should pg_tester work in Linux? #6

janpipek opened this issue Dec 8, 2017 · 1 comment

Comments

@janpipek
Copy link

janpipek commented Dec 8, 2017

Sorry for my ignorance but I am not able to use pg_tester in Linux. It fails when starting the server. I tred to manually run the same command, i.e.:

 /usr/bin/pg_ctl start -o '-p 6433' -D /tmp/pg_tester`

And I obtain the following error message:

could not create lock file "/var/run/postgresql/.s.PGSQL.6433.lock": Permission denied

Intuitively, I would expect something like that; an unprivileged user typically should be able to write there. So the question is - is there any way to run pg_tester without root / postgres account? Or what amendments should I make to my user environment that will not be an open security hole?

Thanks for any hints on this problem.

P.S. My colleagues are happily using pg_tester in macOS.

@dbadura
Copy link

dbadura commented Apr 10, 2019

Yes, you are able to run PostgreSQL as normal user. In postgresql.conf look at unix_socket_directories and change it to which you own.
Look also at PostgreSQL Docs

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

No branches or pull requests

2 participants