Simple linear regression demonstrated a direct linear relationship between the postoperative systemic magnesium concentrations and 24 hour postoperative quality of recovery scores ( P = 0.004 ) , and also an inverse relationship with pain burden in the postoperative care unit ( P = 0.01 ) .