Revision 3147
Added by Aaron Marcuse-Kubitza over 12 years ago
csv2db | ||
---|---|---|
126 | 126 |
log('Cleaning up table') |
127 | 127 |
sql_io.cleanup_table(db, table, col_names) |
128 | 128 |
|
129 |
log('Reanalyzing table')
|
|
130 |
sql.analyze(db, table)
|
|
129 |
log('Vacuuming and reanalyzing table')
|
|
130 |
sql.vacuum(db, table)
|
|
131 | 131 |
|
132 | 132 |
if not errors_table_only: |
133 | 133 |
try: load() |
Also available in: Unified diff
csv2db: Vacuum table instead of just reanalyzing it because for some reason reanalyzing it isn't enough to fix the cached row count (causing pgAdmin3 to report that the table needs to be vacuumed)