{
  "schema": 1,
  "sqlstate": "428C9",
  "condition_name": "generated_always",
  "sources": [
    {
      "id": "src.errcodes.428C9.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "location": "line 355",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L355"
    },
    {
      "id": "src.call.428C9.353c4cc772b5ae9adad09c67",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/rewrite/rewriteHandler.c",
      "location": "lines 942-948",
      "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L942-L948"
    },
    {
      "id": "src.call.428C9.47aaa60ecb1566d462ffaa86",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/rewrite/rewriteHandler.c",
      "location": "lines 981-986",
      "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L981-L986"
    },
    {
      "id": "src.call.428C9.8585d423db2446a6222cbf57",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/rewrite/rewriteHandler.c",
      "location": "lines 1008-1013",
      "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L1008-L1013"
    },
    {
      "id": "src.call.428C9.generated-update",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/rewrite/rewriteHandler.c",
      "location": "lines 1015-1030",
      "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L1015-L1030"
    },
    {
      "id": "src.calls.REL_18_6.428C9",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity.class-and-condition",
      "statement": "428C9 is the generated_always condition in Class 42.",
      "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
      "limits": "Identity does not enumerate all source branches or client failures.",
      "sources": [
        "src.errcodes.428C9.18.6"
      ]
    },
    {
      "id": "mechanism.selected-source-path",
      "statement": "The fixed rewrite branches compute apply_default for omitted INSERT targets and DEFAULT nodes. GENERATED ALWAYS identity INSERTs reject non-default values unless OVERRIDING SYSTEM VALUE is present; OVERRIDING USER VALUE forces the default, while BY DEFAULT identity accepts a supplied value unless USER VALUE is requested. Generated columns accept only DEFAULT. UPDATE guards reject non-default assignments to GENERATED ALWAYS identity and generated columns; virtual generated columns receive a null target entry and stored generated columns are filled by the executor.",
      "method": "Read complete resolved REL_18_6 report groups and message roles.",
      "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
      "sources": [
        "src.call.428C9.353c4cc772b5ae9adad09c67",
        "src.call.428C9.47aaa60ecb1566d462ffaa86",
        "src.call.428C9.8585d423db2446a6222cbf57",
        "src.call.428C9.generated-update"
      ]
    },
    {
      "id": "versions.catalogue-boundary",
      "statement": "The catalogue records the condition by 10.0 and locks snapshots through 18.6 and 19beta3; this is a definition lower bound, not a shared introduction point for identity, stored-generated, and virtual-generated features. The selected mechanism is fixed 18.6 source and runtime was not run.",
      "method": "Read locked catalogue facts and definition snapshots.",
      "limits": "First observed release is a lower bound, not precise behavioral introduction.",
      "sources": [
        "src.errcodes.428C9.18.6"
      ]
    }
  ],
  "messages": [
    {
      "id": "message.variant-1",
      "sqlstate": "428C9",
      "severity_source": "explicit ERROR",
      "primary_template": "cannot insert a non-DEFAULT value into column \"%s\"",
      "detail_templates": [
        "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
      ],
      "hint_templates": [
        "Use OVERRIDING SYSTEM VALUE to override."
      ],
      "roles": [
        {
          "role": "errmsg",
          "template": "cannot insert a non-DEFAULT value into column \"%s\""
        },
        {
          "role": "errdetail",
          "template": "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
        },
        {
          "role": "errhint",
          "template": "Use OVERRIDING SYSTEM VALUE to override."
        }
      ],
      "sources": [
        "src.call.428C9.353c4cc772b5ae9adad09c67"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-2",
      "sqlstate": "428C9",
      "severity_source": "explicit ERROR",
      "primary_template": "cannot insert a non-DEFAULT value into column \"%s\"",
      "detail_templates": [
        "Column \"%s\" is a generated column."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "cannot insert a non-DEFAULT value into column \"%s\""
        },
        {
          "role": "errdetail",
          "template": "Column \"%s\" is a generated column."
        }
      ],
      "sources": [
        "src.call.428C9.47aaa60ecb1566d462ffaa86"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-3",
      "sqlstate": "428C9",
      "severity_source": "explicit ERROR",
      "primary_template": "column \"%s\" can only be updated to DEFAULT",
      "detail_templates": [
        "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "column \"%s\" can only be updated to DEFAULT"
        },
        {
          "role": "errdetail",
          "template": "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
        }
      ],
      "sources": [
        "src.call.428C9.8585d423db2446a6222cbf57"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-4",
      "sqlstate": "428C9",
      "severity_source": "explicit ERROR",
      "primary_template": "column \"%s\" can only be updated to DEFAULT",
      "detail_templates": [
        "Column \"%s\" is a generated column."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "column \"%s\" can only be updated to DEFAULT"
        },
        {
          "role": "errdetail",
          "template": "Column \"%s\" is a generated column."
        }
      ],
      "sources": [
        "src.call.428C9.generated-update"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    }
  ],
  "usage_evidence": [
    {
      "scope": "SQLSTATE definition and release identity",
      "status": "definition_only",
      "evidence_ids": [
        "identity.class-and-condition",
        "src.errcodes.428C9.18.6"
      ]
    },
    {
      "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "mechanism.selected-source-path"
      ]
    },
    {
      "scope": "Natural runtime execution for this batch",
      "status": "unknown",
      "evidence_ids": []
    }
  ],
  "runtime": []
}
