Open
Description
To be able to start my postgres in a test environment where other tests for other services may run in parallel I'd like to dynamically allocate the port and retrieve the actually allocated port when postgres is started. net.Listen() already supports dynamic port allocation. This is done by passing the port number 0. When I tried using port 0 with embedded-postgres I got this error message:
waiting for server to start....2024-01-26 08:39:40.670 GMT [47041] FATAL: 0 is outside the valid range for parameter "port" (1 .. 65535)
stopped waiting
pg_ctl: could not start server
Metadata
Metadata
Assignees
Labels
No labels