Tickets
Issues
# TODO: remove try/except, use a portable query- Id: 817928f982fc20b17f536ff0de30416f
- Status: Open
- Initial commit: bfbcd498a91d84ee535142fe170ec21e4f94a165
- Creation date: 2015-01-24 11:34:13
- Last changed: 2015-01-24 14:43:16
- Created by: Laurent Defert
- Last changed by: Laurent Defert
- File: dbannotate/db.py
# 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
-
Changed by Laurent Defert on 2015-01-24 14:43:16 during daf3f2cdb447598e52e28b08eea9ae40e221f29f
-
File:
db.py- dbannotate/db.py