《宋史·列传·卷五十五》
祖父梁惟忠，以明经出身历任使官、知府的辅佐官员，最后官做到天平军节度判官。
祖惟忠，以明经历佐使府，至天平军节度判官。
His grandfather Liang Weizhong was born in Mingjing and successively served as the assistant officer of the governor and the prefecture and finally an adjudicator of the military judge of Tianping.