Repository navigation
PostgreSQL 19 RC 1: replace SQL/PGQ with relational one-hop joins and move the engine image - #530
Conversation
Codex review round 1 (gpt-6.1-sol, max effort)VERDICT: REQUEST_CHANGES
Verification otherwise passed: exact Docker Hub digest/platforms, PGDG pins, header compatibility checks, fresh GCC/LLVM compilation with
Disposition (Claude)
|
19537ac to
722566a
Compare
Codex review round 2 (gpt-6.1-sol, max effort), on d12f53aVERDICT: REQUEST_CHANGES
Verification: 231 tests passed on the supplied RC 1 database, covering graph reads, the fence, migrations, readiness, repair, and downgrade cases. Docs and release checks passed. No one-hop result discrepancy found; no ingestion reuse keys touched. Beta 3 upgrade/restore was inspected but not rerun. I modified no files. Review target was Disposition (Claude), fixed in 722566a
|
Codex review round 3 (gpt-6.1-sol, max effort), on 722566aVERDICT: REQUEST_CHANGES
Round-2 minors 2 and 3 are resolved. The migration chain is correct, and all three compatibility-matrix jobs pass. Verification: 795 local tests passed on the supplied RC 1 database. Docs and release checks passed. Beta 3 upgrade/restore was not rerun. No ingestion reuse keys changed, no repository files modified, and no other containers touched. Disposition (Claude)
|
Codex review round 4 (gpt-6.1-sol, max effort), on 82e9504VERDICT: APPROVE No blocker, major, or minor findings. Both round-3 majors are resolved:
Passed contract export, TypeScript generation/surface/typecheck, public/cloud docs checks, llms freshness, and release validation. Backend code and ingestion reuse keys are unchanged since round 3; the 795-test suite was not rerun. CI had no failures observed, with some jobs still running. No repository files modified. |
82e9504 to
3ffd7c6
Compare
Codex review round 5 (delta after rebase/renumber), on 3ffd7c6VERDICT: APPROVE No blocker, major, or minor findings. No fixes required.
Worktree unchanged. |
The reference image moves from 19beta3 to 19rc1-trixie, pinned by digest (owner, 2026-11-06), through Dockerfile.postgres, Compose, the release workflow tag, RELEASING.md, the docs and a D98 amendment. - pg_textsearch v1.5.1 uses INT_MAX without including <limits.h>, which the RC 1 headers no longer pull in (timescale/pg_textsearch#586). The build force-includes the header through CPPFLAGS; the source stays unmodified, and the 82 upstream regression tests pass. - pgvector moves to the PGDG rebuild 0.8.6-1.pgdg13+2 (against Beta 4); the access-method headers it uses are unchanged in RC 1. - RC 1 changes the catalog version, so a Beta 3 data directory does not open under it; the upgrades page says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
…eSQL 19 RC 1 PostgreSQL 19 Beta 4 reverted SQL/PGQ, so RC 1 cannot parse CREATE PROPERTY GRAPH or GRAPH_TABLE and fresh setup failed in p9_17_0038. The D98 live graph stays; only its query mechanism changes. - The one-hop neighborhood is a static join over the existing relations_current/relations_history edge views, one UNION ALL branch per edge direction, after the same guard-first admission. The D140 evidence gate sits above an OFFSET 0 fence so it never runs on every relation of the deployment. - Property graphs, their grants, and the property-graph catalog/ACL readiness checks are removed. The catalog check verifies the node and edge views exist, plus helpers, citation traversal and roles. The ops graph-catalog output drops `definitions`; readiness reason codes graph_pgq_* become graph_one_hop_*. - p9_17/p9_38/p9_40 no longer create or grant the property graphs and use a guarded drop (only a Beta 3 store can hold relkind 'g'). New p9_42_0063 drops them from Beta 3 stores at the prior head. - D98 amendment, design/analysis reconciliation, upgrade docs, and a test that fresh setup reaches head on a server without SQL/PGQ. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
…ct hash Engines up to 0.17.2 create SQL/PGQ property graphs in p9_17_0038, which the RC 1 server built from Dockerfile.postgres cannot parse. The compatibility matrix now starts the PostgreSQL image each released engine shipped with; the candidate still runs on the branch's image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
- Renumber the property-graph drop to p9_43_0064 after main's p9_42_0063_entity_counts_demand; head assertions follow. - Compose and requirements: a main checkout between releases starts with --build, because the published 0.17.2 engine needs Beta 3. - Install page no longer says release candidate for the v0.17.2 checkout. - Reconcile the remaining SQL/PGQ and property-graph statements in retrieval, packaging, P1 search, locomo, identity, distribution and documentation designs and requirements_v3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
- README and the quickstart clone main, so they start with `docker compose up -d --build`: the engine and PostgreSQL images are built from the same checkout and match. - Regenerate src/metadata.generated.ts with npm run generate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
…aim leases Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
3ffd7c6 to
f3f3f85
Compare
UMC relaunch plan phase 2 item (g): move the engine's Postgres image from
19beta3to PostgreSQL 19 RC 1. PostgreSQL 19 Beta 4 reverted SQL/PGQ, so this PR also replaces every SQL/PGQ use with plain relational SQL (orchestrator decision, 2026-11-06). The D98 live graph stays; only its query mechanism changes.Commit 1: image move (unchanged from the original #530)
Dockerfile.postgres:postgres:19rc1-trixie@sha256:f6bab6213c486e940e310a88490935cbc71b88f6c19fee3cd2ab14b3b02ff65b(multi-arch). pg_textsearch 1.5.1 builds with-include limits.h(upstream error: use of undeclared identifier INT_MAX timescale/pg_textsearch#586), so there is no source patch. pgvector0.8.6-1.pgdg13+2, pg_partman 5.5.0.compose.yaml,release.yml(remember-stack-postgres:19rc1-<version>),RELEASING.md. Compose buildsDockerfile.postgreslocally until the next release publishes the RC 1 image.Commit 2: SQL/PGQ replaced with relational SQL
postgres_graph_sql.py):CURRENT_/HISTORY_NEIGHBORHOOD_ONE_HOPreplace the twoGRAPH_TABLEstatements. Each is a static join over the existing edge viewsrememberstack_graph_internal.relations_current/relations_history, the views the property graph'srelatesedge table pointed at. It has oneUNION ALLbranch per edge direction and drops self-loops. It runs after the unchanged relational budget guard. Both endpoints of every edge row are already live entity vertices, so no vertex join is needed.OFFSET 0, the same fence the guard uses. Without it the planner pushed the gate into the edge view and ran it on every relation of the deployment. On a store with accumulated test data that exceeded the graph role's 5 s timeout. The old PGQ statement on Beta 3 has the same failure: origin/main'stest_sql_pgq_neighborhood_is_live_and_paginatestimes out on such a store. A new plan test pins the fence.GRANT ... ON PROPERTY GRAPH, and the property-graph catalog/ACL checks (information_schema.pg_*,pg_get_propgraphdef,pg_property_graph_privileges). The catalog check now verifies that the node and edge views exist, plus helpers, citation traversal and roles as before.ops graph-catalog ensureJSON dropsdefinitions.graph_pgq_guard_smoke_failedbecomesgraph_one_hop_guard_smoke_failed, andgraph_pgq_smoke_failedbecomesgraph_one_hop_smoke_failed. Docs are updated to match.p9_17_0038,p9_38_0059andp9_40_0061(and the sharedfact_graph_contractrebuild) no longer create or grant the property graphs. Their drops use a guardedDROP_PROPERTY_GRAPHShelper, which runsDROP PROPERTY GRAPHviaEXECUTEonly forrelkind = 'g'rows. Only a Beta 3 store can have those rows, so RC 1 never parses the statement.p9_44_0065drops the graphs from Beta 3 stores already at the prior head. On RC 1 it does nothing. Its downgrade is a no-op.decisions.mdgets a D98 RC 1 amendment: the graph stays, the query mechanism changes, and the superseded clauses are marked inside D98. The following are reconciled:p2_graph_design.md,postgres_schema_design.md,open_query_space_design.md,overall_design.md, the analysis (a dated section on alternatives) and the plans. Website pages are updated: requirements, upgrades (the Beta 3 to RC 1 path), install, choose, operating, architecture, and ingest reason codes.llms-full.txtis regenerated.19rc1-0.17.2published.Upgrade path for an existing Beta 3 database
RC 1 changes the catalog version, and
pg_upgrade/pg_restorewould replay the property-graph DDL. The order is:p9_44_0065drops the graphs.Verification
*_PGQand new*_ONE_HOPstatements return identical rows. That covers 1218 statement pairs and 540 rows: 29 anchors × every predicate filter × 3 instants × current/history.alembic upgrade headgivesp9_44_0065, 0relkind 'g', andpg_dumpcontains noPROPERTY GRAPH. (Before the upgrade the dump had 2.)pg_dumpall --roles-only+pg_dump -Fcon Beta 3, restored into an empty RC 1 server withpg_restore --exit-on-error: clean.upgrade headis a no-op,graph_catalog_problems() == (), and the one-hop statements run (60 rows).pg_upgradewas not tested.test_fresh_setup_runs_on_a_server_without_sql_pgq: on the CI image the server rejectsCREATE PROPERTY GRAPH, a fresh install reaches head, no property graph exists, and the catalog check passes. The Compose quickstart job also runssetupand live-graph readiness on the RC 1 image built fromDockerfile.postgres.test_postgres_graph_sql,test_graph_queries,test_pipeline_readiness,test_ops_cli,test_query_sandbox_batch_b,test_query_sandbox_graph_d98,test_d140_migration, and the graph-relatedtest_migrationscases all pass.truncatedintest_recursive_helper_null_depth_uses_default_and_truthful_data_status, which uses a 1 s time budget on a loaded machine. That test touches no changed code, and it passed on rerun.ruff check,ruff format,pyright(0 errors);generate_docs_llms.py --check;check_docs_truth.py;check_release_contract.py.p9_44_0065)--build; generated TS metadata), fixed in 79d34f5/82e9504e7Commit 3: CI
remember-stack-postgres:19beta3-<version>, viaPOSTGRES_IMAGEin.github/ci/start-postgres.sh). Their migrations create property graphs that RC 1 cannot parse. The candidate still runs on this branch's RC 1 image.sourceHashrefreshed.Coordination: rebased on main; the migration chains after #529's
p9_43_0064_claim_leases.Contributor agreement
🤖 Generated with Claude Code
https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm