Add new APIs for getting pg files