Skip to content

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented Apr 4, 2025

  • Use one of the IP addresses from listen_addresses if configured.
  • Handles special listen addresses, like *, 0.0.0.0, and ::.
  • Only set PGPORT if using IP addresses. Reverted on main. PGPORT is required by initdb and other tools.
  • Expand the docs for listen_addresses using the official postgres docs as reference.

@sandydoo sandydoo added the enhancement New feature or request label Apr 4, 2025
Copy link

cloudflare-workers-and-pages bot commented Apr 4, 2025

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb2cb01
Status: ✅  Deploy successful!
Preview URL: https://3e88576e.devenv.pages.dev
Branch Preview URL: https://fix-pghost.devenv.pages.dev

View logs

@sandydoo sandydoo marked this pull request as ready for review April 18, 2025 13:51
@domenkozar domenkozar merged commit bb2e26c into main Apr 18, 2025
8 checks passed
@schonfinkel
Copy link

@sandydoo thank you for these changes, I had once resorted to overriding the PGHOST set by devenv, to follow whatever value I had put in my listen_address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants