Skip to content

postgres: improve how PGHOST is computed #1809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 18, 2025
Merged

postgres: improve how PGHOST is computed #1809

merged 4 commits into from
Apr 18, 2025

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.
  • 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
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.

2 participants