Skip to content

StartParameters don't work on Windows #145

Closed
@hugodutka

Description

@hugodutka

Each parameter is enclosed in single quotes, which the shell on Windows treats as regular characters rather than string delimiters. Embedded postgres then fails to start with:

waiting for server to start....2024-10-30 19:27:34.938 GMT [5368] FATAL:  invalid value for parameter "max_connections": "'1000'"
 stopped waiting
pg_ctl: could not start server
Examine the log output.
panic: could not start postgres using C:\Users\RUNNER~1\AppData\Local\Temp\coder-test-postgres\bin\bin\pg_ctl start -w -D C:\Users\RUNNER~1\AppData\Local\Temp\coder-test-postgres\data -o -p 5432 -c max_connections='1000':

As a workaround, one can use ALTER SYSTEM SET SQL queries for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions