Fix variable name for work mem in pgcleanup.py

This commit is contained in:
Nate Coraor
2019-05-17 11:30:40 -04:00
parent 9b9daffd41
commit fc027182f7
+1 -1
View File
@@ -991,7 +991,7 @@ class Cleanup(object):
# TODO: is this per session or cursor?
if self.args.work_mem is not None:
log.info('Setting work_mem to %s' % self.args.work_mem)
self._conn.cursor().execute('SET work_mem TO %s', (self.args.work_mem,))
self.__conn.cursor().execute('SET work_mem TO %s', (self.args.work_mem,))
return self.__conn
def __parse_args(self):