(self, copy_cmd, curs, fn)
Dump table to disk.
Dump table to disk.
Dump table to disk .
def dump_table(self, copy_cmd, curs, fn):
        """Dump table to disk."""
        f = open(fn, "w", 64*1024)
        curs.copy_expert(copy_cmd, f)
        self.log.info('%s: Got %d bytes' % (self.table_name, f.tell()))
        f.close()
def dump_table ( self , copy_cmd , curs , fn ) : f = open ( fn , "w" , 64 * 1024 ) curs . copy_expert ( copy_cmd , f ) self . log . info ( '%s: Got %d bytes' % ( self . table_name , f . tell ( ) ) ) f . close ( )