Closed henrik242 closed 2 years ago
Switching to a newer postgresql binary than the default 10.18
fixed it, e.g.
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'io.zonky.test.postgres') {
details.useVersion '11.13.0'
}
}
}
In case it helps... I downloaded the Postgres binaries directly from the EDB website and they seg fault for me when I run them directly from command line (without even using embedded-postgres) on macOS 12.0.1, so that seems to be where the root cause of the issue is I believe. I tried the binaries from:
But I get the following when I try to run the binary:
./postgres
[1] 19003 segmentation fault ./postgres
Version 11.13 and 12.8 from http://get.enterprisedb.com/postgresql/postgresql-11.13-1-osx-binaries.zip and http://get.enterprisedb.com/postgresql/postgresql-12.8-1-osx-binaries.zip did seem to work for me:
./postgres -V
postgres (PostgreSQL) 11.13
and
./postgres -V
postgres (PostgreSQL) 12.8
Thanks a lot for your investigation guys, I will consider upgrading the default version of postgres binaries.
Thanks a lot for your investigation guys, I will consider upgrading the default version of postgres binaries.
šš»
we're running into this as well, the fix from henrik worked great. I would suggest that the default version gets pushed to 11.13, especially as the wider adoption of Monterey will ramp up.
For those using SBT, just append the version you want to your library dependencies:
libraryDependencies += "io.zonky.test.postgres" % "embedded-postgres-binaries-darwin-amd64" % "11.13.0" % "runtime"
Switching to a newer postgresql binary than the default
10.18
fixed it, e.g.configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> if (details.requested.group == 'io.zonky.test.postgres') { details.useVersion '11.13.0' } } }
Which dependency manager is this for? Gradle? How to achieve the same in Maven? I tried following link https://github.com/zonkyio/embedded-postgres#postgres-version but didn't solve it for me.
Which dependency manager is this for? Gradle? How to achieve the same in Maven? I tried following link https://github.com/zonkyio/embedded-postgres#postgres-version but didn't solve it for me.
Yeah, that's Gradle. The linked doc should solve the same thing in Maven, I don't really know why not.
@tomix26 Do you know what's the timeline for upgrading the default version of Postgres to get this working? I have been using a workaround for a while now. Thanks in advance!!
I would suggest that the default version gets pushed to 11.13, especially as the wider adoption of Monterey will ramp up.
What about databases that are below this version and on 10.X? Id love backward compatible support if possible.
@prabhushrikant For maven you need to have the following in your pom:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.zonky.test.postgres</groupId>
<artifactId>embedded-postgres-binaries-bom</artifactId>
<version>11.13.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<version>1.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>
The embedded postgres 2.0 has been upgraded to postgres binaries 14.3. This upgrade should resolve all of the issues listed above.
I seem to be unable to use embedded-postgres (I'm on v
1.3.1
)