Skip to content

Docs: add a working Postgres Unix-socket DSN example #960

Closed

Description

@fclairamb

From the v0.52.0 retest in #944: #944 (comment) — sockets work now (fix #939), and the reporter asks for an example string in the docs.

Working forms, tested with Docker (mounted socket) and on bare metal:

postgres://user:pass@/dbname?sslmode=disable&host=/var/run/postgresql
postgres://user:pass@/dbname?host=/var/run/postgresql&sslmode=disable

Add the example to the PostgreSQL section of the Docker install page (web/docs/docs/installation/docker.md, next to SP_DB_URL) and to the configuration reference. Worth a one-line note that a non-default port needs &port=5433, and that percent-encoded hosts (%2F...) do not work (Go's URL parser rejects them before the driver sees them).

Source: feddit.org user morethanevil on the project post https://feddit.org/post/38184275 (conversation moved to #944).

Activity

  1. added
    fix-pending
    on Nov 21, 2026
  2. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    Fixed in e1fa8335 on branch wt/feat/todos-2026-11-21: the Docker install page now shows a Unix-socket SP_DB_URL (mounted socket dir, &port=5433 note, percent-encoded host warning), next to the example already in the database configuration reference; a Go test keeps both examples valid. Not merged yet: closing because the fix exists, the branch's PR carries it live.

  3. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    autopilot: in #964

  4. added a commit that references this issue on Nov 21, 2026
    b72f85b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automergeautopilotfix-pending

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions