update to pg restrict