pghistory.middleware.HistoryMiddleware
django.db.connection.cursor().executemany(sql, batch)
pgh_context
%