Tickets

Issues

# TODO: remove try/except, use a portable query


        # TODO: remove try/except, use a portable query
        try:
            try:
                r = self.engine.execute('select pg_relation_size(%(table_name)s), pg_total_relation_size(%(table_name)s)', {'table_name': table})
            except Exception:
                r = self.engine.execute('select data_length, data_length + index_length FROM information_schema.TABLES WHERE table_name = %s', table)

History