{
  "schema": 1,
  "sqlstate": "57P03",
  "condition_name": "cannot_connect_now",
  "sources": [
    {
      "id": "src.errcodes.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L437",
      "lines": "437"
    },
    {
      "id": "src.path.0",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/tcop/backend_startup.c",
      "sha256": "5516f3d6d83ae6fc66ca6bad9a7cea3cd2f8de53f0597c26baa2bd224ac270bb",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/backend_startup.c#L307",
      "lines": "307-338"
    },
    {
      "id": "src.path.1",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/misc/guc_tables.c",
      "sha256": "7b3b81dcfd95f6543b01b2dd4262e93d03113065e18ed8f780b7125a4976e8df",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L1895",
      "lines": "1895-1903"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "57P03 is cannot_connect_now in SQLSTATE Class 57.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read fixed definition."
    },
    {
      "id": "resolved-paths",
      "statement": "The fixed startup guards support all listed startup/recovery messages, and guc_tables.c defines hot_standby as PGC_POSTMASTER, so enabling it requires a server restart rather than a reload.",
      "sources": [
        "src.path.0",
        "src.path.1"
      ],
      "method": "Read the complete startup guard and hot_standby GUC definition.",
      "limits": "Source confirmation is not natural runtime."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 57P03 from 7.4; that boundary does not prove exact implementation introduction.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue boundary."
    },
    {
      "id": "hot-standby-context",
      "statement": "hot_standby has GUC context PGC_POSTMASTER; a SIGHUP/reload cannot activate a changed value for the running server.",
      "sources": [
        "src.path.1"
      ],
      "method": "Read the fixed guc_tables.c entry."
    }
  ],
  "messages": [
    {
      "id": "message.0",
      "sqlstate": "57P03",
      "primary_template": "the database system is starting up",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ]
    },
    {
      "id": "message.1",
      "sqlstate": "57P03",
      "primary_template": "the database system is not accepting connections",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ],
      "detail_template": "Hot standby mode is disabled."
    },
    {
      "id": "message.2",
      "sqlstate": "57P03",
      "primary_template": "the database system is not yet accepting connections",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ],
      "detail_template": "Recovery snapshot is not yet ready for hot standby.",
      "hint_template": "To enable hot standby, close write transactions with more than %d subtransactions on the primary server."
    },
    {
      "id": "message.3",
      "sqlstate": "57P03",
      "primary_template": "the database system is not yet accepting connections",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ],
      "detail_template": "Consistent recovery state has not been yet reached."
    },
    {
      "id": "message.4",
      "sqlstate": "57P03",
      "primary_template": "the database system is shutting down",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ]
    },
    {
      "id": "message.5",
      "sqlstate": "57P03",
      "primary_template": "the database system is in recovery mode",
      "severity_source": "FATAL",
      "sources": [
        "src.path.0"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "resolved-paths"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "resolved-paths"
      ]
    }
  ],
  "runtime": []
}
