Skip to content

Conversation

@haraldschilly
Copy link
Contributor

@haraldschilly haraldschilly commented Dec 23, 2025

things to add

  • spinlock-protect db schema updates → actually pg_try_advisory_lock
  • include "ensure_exists" → but not via commands
  • use pgPool instance inside the large postgres wrapper class
  • get rid of _client round-robin
  • get rid of standby query support
  • remove backup/restore

@haraldschilly haraldschilly added PR-work in progress PR-TODO-cocalc2 merge/migrate this PR into CoCalc2 in the future labels Dec 23, 2025
@haraldschilly haraldschilly force-pushed the decaff-20251223 branch 8 times, most recently from 291eab8 to b25c175 Compare December 27, 2025 16:33
@haraldschilly haraldschilly force-pushed the decaff-20251223 branch 3 times, most recently from 380fbc7 to 14bec95 Compare December 29, 2025 13:39
@haraldschilly haraldschilly force-pushed the decaff-20251223 branch 4 times, most recently from 4598839 to 4b79a06 Compare December 29, 2025 14:47
@haraldschilly haraldschilly force-pushed the decaff-20251223 branch 4 times, most recently from 6460117 to b231d9f Compare January 5, 2026 14:40
@haraldschilly haraldschilly marked this pull request as ready for review January 5, 2026 15:20
@haraldschilly
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

haraldschilly and others added 5 commits January 6, 2026 15:48
Resolved conflicts:
- postgres-user-queries.coffee: Removed (already converted to TypeScript)
- packages/database/postgres/types.ts: Merged method signatures
- packages/server/projects/collaborators.ts: Integrated ownership checks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…d adjust tests -- issue appeared after merging in the diverging changes from branch project-transfer-ownership-7718
- drop _clients/_client_index and make pg.Pool the core connection for PostgreSQL

- remove per-instance connection options and assume shared pool config

- add _get_query_client/_get_listen_client and keep a dedicated LISTEN/NOTIFY client

- route queries through pooled clients and update connect/disconnect semantics

- adjust sync/message/group helpers to release pooled clients

- remove backup/restore ops from database API while keeping getBackupTables/NON_CRITICAL_TABLES

- update tests and cleanup to close listen clients and await pool shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-TODO-cocalc2 merge/migrate this PR into CoCalc2 in the future PR-work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants