Skip to content

Improve Codespaces startup and PG bootstrap flow#95

Merged
pinodeca merged 1 commit into
mainfrom
pinodeca/codespace-start-pg
Mar 31, 2026
Merged

Improve Codespaces startup and PG bootstrap flow#95
pinodeca merged 1 commit into
mainfrom
pinodeca/codespace-start-pg

Conversation

@pinodeca
Copy link
Copy Markdown
Contributor

Summary

  • Add shared PostgreSQL helpers in scripts/pg-common.sh for pgrx environment resolution, cluster bootstrap, role compatibility, and extension checks.
  • Refactor scripts/pg-start.sh to use shared helpers, support --skip-build/--pg-version, and align empty-data-dir initialization with Codespaces bootstrap behavior.
  • Update .devcontainer/onCreateCommand.sh to prepare and verify the local pgrx PostgreSQL cluster during prebuild.
  • Rework .devcontainer/postCreateCommand.sh into a passive status-and-guidance script that avoids slow build/start actions on Codespace open.
  • Refresh README.md and docs/CODESPACES_PREBUILDS.md to match current prebuild/post-create behavior and GH_PAT handling.
  • Adjust local helper usage in scripts/measure-memory.sh for explicit admin-role checks in automation paths.

Validation

  • bash -n on updated shell scripts
  • Manual run of .devcontainer/postCreateCommand.sh
  • Manual stop/start check with updated scripts/pg-start.sh

@pinodeca pinodeca force-pushed the pinodeca/codespace-start-pg branch from db7e986 to 95879a2 Compare March 30, 2026 23:11
@pinodeca pinodeca force-pushed the pinodeca/codespace-start-pg branch from 95879a2 to 0484cf6 Compare March 31, 2026 00:18
@pinodeca pinodeca merged commit 4b9ea71 into main Mar 31, 2026
8 checks passed
@pinodeca pinodeca deleted the pinodeca/codespace-start-pg branch March 31, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant