Skip to content

[postgres-] overhaul postgres loader#3021

Open
saulbert wants to merge 2 commits intodevelopfrom
fix-2203
Open

[postgres-] overhaul postgres loader#3021
saulbert wants to merge 2 commits intodevelopfrom
fix-2203

Conversation

@saulbert
Copy link
Copy Markdown
Collaborator

Summary

Closes #282, closes #522, closes #579, closes #586, closes #727

Test plan

  • dev/setup-postgres.sh to create local test database
  • dev/test-all.sh tests/test-postgres.sh passes
  • dev/test-all.sh — all existing tests still pass
  • Interactive: vd postgres:///vdtest — tables sheet, Enter to open benchmark
  • Interactive: vd postgres:///vdtest/benchmark — direct table access
  • Interactive: edit cells, add/delete rows, z Ctrl+S to commit changes
  • Interactive: exec-sql command to run raw SQL

🤖 Generated with Claude Code

saulbert and others added 2 commits March 14, 2026 02:00
- fresh connection per query, fixing cascading transaction errors (#727)
- parse /dbname/tablename from URL for direct table access (#282)
- postgres_user/password/host/port options override URL values (#522)
- exec-sql and edit-sql commands (#586)
- INSERT/UPDATE/DELETE via primary keys with deferred saves (#579)
- PgTablesSheet now extends IndexSheet with iterload
- only pass connection params that are specified (unix socket works)
- add dev/setup-postgres.sh and tests/test-postgres.sh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- TESTING.md: never use -o /dev/stdout in batch tests
- STYLE.md: rowid() must use calcValue() for deferred sheets
- STYLE.md: only pass specified psycopg2 connection params

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant