{
  "schema": 1,
  "sqlstate": "42939",
  "condition_name": "reserved_name",
  "sources": [
    {
      "id": "src.errcodes.42939.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "location": "line 349",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L349"
    },
    {
      "id": "src.call.42939.baa3c4599e167695f281cfe8",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/schemacmds.c",
      "location": "lines 107-110",
      "sha256": "5fd5f43dce5f36f06ed390014c06f244564072227d25a22735f594d2170626b1",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/schemacmds.c#L107-L110"
    },
    {
      "id": "src.call.42939.aed179efd45a7ca409d59fd6",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/tablespace.c",
      "location": "lines 281-285",
      "sha256": "f0369bece6339d18cd7d4a29b5fa3010447c3b8ece235c64b0d4fbf5f96a5317",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablespace.c#L281-L285"
    },
    {
      "id": "src.call.42939.419595a34cae2a69b2e21624",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/user.c",
      "location": "lines 352-356",
      "sha256": "aa8769a2577fff287301d6c82169262cca328515ae940d5a2be4b3e8c21617ed",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/user.c#L352-L356"
    },
    {
      "id": "src.call.42939.role-grammar",
      "kind": "upstream_source",
      "source_role": "source_call",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/parser/gram.y",
      "location": "lines 17460-17542",
      "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L17460-L17542"
    },
    {
      "id": "src.calls.REL_18_6.42939",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity.class-and-condition",
      "statement": "42939 is the reserved_name 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.42939.18.6"
      ]
    },
    {
      "id": "mechanism.selected-source-path",
      "statement": "Schema and tablespace paths reject reserved `pg_` names with object-specific DETAIL. CREATE ROLE reports the reserved `pg_` role path. RoleId grammar rejects `public`, `none`, SESSION_USER, CURRENT_USER, and CURRENT_ROLE in role-name positions, with a reserved-role-name primary for public/none and a `%s cannot be used as a role name here` primary for the current/session tokens.",
      "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.42939.baa3c4599e167695f281cfe8",
        "src.call.42939.aed179efd45a7ca409d59fd6",
        "src.call.42939.419595a34cae2a69b2e21624",
        "src.call.42939.role-grammar"
      ]
    },
    {
      "id": "versions.catalogue-boundary",
      "statement": "From the locked 7.4 lower bound through 18.6 and 19beta3; multiple branches do not imply one introduction point.",
      "method": "Read locked catalogue facts and definition snapshots.",
      "limits": "First observed release is a lower bound, not precise behavioral introduction.",
      "sources": [
        "src.errcodes.42939.18.6"
      ]
    }
  ],
  "messages": [
    {
      "id": "message.variant-1",
      "sqlstate": "42939",
      "severity_source": "explicit ERROR",
      "primary_template": "unacceptable schema name \"%s\"",
      "detail_templates": [
        "The prefix \"pg_\" is reserved for system schemas."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "unacceptable schema name \"%s\""
        },
        {
          "role": "errdetail",
          "template": "The prefix \"pg_\" is reserved for system schemas."
        }
      ],
      "sources": [
        "src.call.42939.baa3c4599e167695f281cfe8"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-2",
      "sqlstate": "42939",
      "severity_source": "explicit ERROR",
      "primary_template": "unacceptable tablespace name \"%s\"",
      "detail_templates": [
        "The prefix \"pg_\" is reserved for system tablespaces."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "unacceptable tablespace name \"%s\""
        },
        {
          "role": "errdetail",
          "template": "The prefix \"pg_\" is reserved for system tablespaces."
        }
      ],
      "sources": [
        "src.call.42939.aed179efd45a7ca409d59fd6"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-3",
      "sqlstate": "42939",
      "severity_source": "explicit ERROR",
      "primary_template": "role name \"%s\" is reserved",
      "detail_templates": [
        "Role names starting with \"pg_\" are reserved."
      ],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "role name \"%s\" is reserved"
        },
        {
          "role": "errdetail",
          "template": "Role names starting with \"pg_\" are reserved."
        }
      ],
      "sources": [
        "src.call.42939.419595a34cae2a69b2e21624"
      ],
      "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
    },
    {
      "id": "message.variant-4",
      "sqlstate": "42939",
      "severity_source": "explicit ERROR",
      "primary_template": "role name \"%s\" is reserved",
      "detail_templates": [],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "role name \"%s\" is reserved"
        }
      ],
      "sources": [
        "src.call.42939.role-grammar"
      ],
      "limits": "The grammar supplies public or none as the dynamic role-name value; no concrete command is claimed."
    },
    {
      "id": "message.variant-5",
      "sqlstate": "42939",
      "severity_source": "explicit ERROR",
      "primary_template": "%s cannot be used as a role name here",
      "detail_templates": [],
      "hint_templates": [],
      "roles": [
        {
          "role": "errmsg",
          "template": "%s cannot be used as a role name here"
        }
      ],
      "sources": [
        "src.call.42939.role-grammar"
      ],
      "limits": "The grammar supplies SESSION_USER, CURRENT_USER, or CURRENT_ROLE as the dynamic token; no concrete command is claimed."
    }
  ],
  "usage_evidence": [
    {
      "scope": "SQLSTATE definition and release identity",
      "status": "definition_only",
      "evidence_ids": [
        "identity.class-and-condition",
        "src.errcodes.42939.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": []
}
