Open edrdo opened 7 years ago
I solved my problem for now using AppVeyor's built-in Postgres service, bypassing the use of postgresql-embedded. I saw your README more carefully and became aware of quite a few issues on Windows, maybe you can close this issue. Out of curiosity anyway, I forked your repository temporarily and I noticed your AppVeyor build also fails (on the psexec step).
@edrdo You're right, PostgreSQL (and therefore this library as well) has some limitations. The problem with Appveyor is that it runs builds under administrator by default and PostgreSQL cannot be started under privileged user. I tried to use psexec to force Appveyor to run builds under the limited user, but it was not successful.
Hi,
I've been using postgresql-embedded for tests in JDBDT (http://github.com/edrdo/jdbdt) without any problems on MacOS and Linux. I was just trying to enable AppVeyor continuous integration for Windows builds when I encounted some errors.
The way I use postgresql-embedded is simple (full code here in https://github.com/edrdo/jdbdt/blob/master/src/test/java/org/jdbdt/postgresql/PostgreSQLSuite.java)
On setup I have:
During a AppVeyor build - check https://ci.appveyor.com/project/edrdo/jdbdt/build/3 - the JDBC driver is unable to connect to the embedded Postgres database.
Maybe this is an Appveyor issue with restricted port use? In that case how can I configure the port for the "cached runtime config" . More generally, the point of the cached config is to avoid downloading the PostgreSQL binaries, but I gather that there is no way to set the URL parameters (name, pass, port, etc). I looked up the postgresql-embedded source code but I couldn't determine how to set up these together with a cached config, probably I'm missing something ...