)]}'
{
  "commit": "2c8be68f4559a9acb78733bbb3a2fa22c98ac80e",
  "tree": "de584f777398d17be2db334fdcb7d8885ba2309d",
  "parents": [
    "72fa1d0507a5d420bb08f88a71d106d0cf45850a"
  ],
  "author": {
    "name": "ksaiharshavinay",
    "email": "133778784+ksaiharshavinay@users.noreply.github.com",
    "time": "Mon Nov 23 11:30:18 2026 -0500"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 23 21:30:18 2026 +0500"
  },
  "message": "Make get_vertex see clause writes after a CALLed function runs statements (#2615)\n\nA statement executed inside a function called with CALL goes through\nSPI, whose CommandCounterIncrement advances the global command id\nbut not the curcid of the snapshot used by the executor. The clause\nmachinery tracks curcid manually and assumes it stays in step, so\nafter such a CALL the snapshot lags: a SET update later in the same\nquery is stamped with a command id the snapshot cannot see, and\nproperties(endNode(r)) returns the pre-update tuple even though the\nstored vertex is correct. A plain INSERT inside the called function\ntriggers it too; DDL is not required.\n\nApply the same save / advance-with-Max / restore pattern the\nexecutor\u0027s entity fetch in cypher_utils.c already uses, in\nget_vertex(), which backs startNode(), endNode() and\n_get_vertex_by_graphid.\n\nAdd a regression test in cypher_call.sql with a no-op CALL as\ncontrol and an index-creating CALL as the failing case.\n\nFixes 2605",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "08f97ba413459c8774c73d6b8ef04d06438a7653",
      "old_mode": 33188,
      "old_path": "regress/expected/cypher_call.out",
      "new_id": "effd246866964ddf5f816707b2aa1863df2574c2",
      "new_mode": 33188,
      "new_path": "regress/expected/cypher_call.out"
    },
    {
      "type": "modify",
      "old_id": "ee1468755e0e93331253e9042d3ea2c0a899fe3a",
      "old_mode": 33188,
      "old_path": "regress/sql/cypher_call.sql",
      "new_id": "9c4fbd53ae902ecbda104c965d27e3d83449db0a",
      "new_mode": 33188,
      "new_path": "regress/sql/cypher_call.sql"
    },
    {
      "type": "modify",
      "old_id": "df2cea0a99d33229d970862222709d032edbc000",
      "old_mode": 33188,
      "old_path": "src/backend/utils/adt/agtype.c",
      "new_id": "36ca8b36deaf5dc368ba6afcd05cb3ae34fb99dc",
      "new_mode": 33188,
      "new_path": "src/backend/utils/adt/agtype.c"
    }
  ]
}
