Project

General

Profile

« Previous | Next » 

Revision 3147

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)

View differences:

bin/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