def getBgWriterStats(self):
info_dict = {}<EOL>if self.checkVersion('<STR_LIT>'):<EOL><INDENT>cur = self._conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor)<EOL>cur.execute("<STR_LIT>")<EOL>info_dict = cur.fetchone()<EOL><DEDENT>return info_dict<EOL>
Returns Global Background Writer and Checkpoint Activity stats.

        @return: Nested dictionary of stats.