ALTER TABLE foo ADD COLUMN id BIGSERIAL UNIQUE
db_master_conn = psycopg2.connect('dbname=tva user=postgres') db_slave_conn = psycopg2.connect('dbname=tva2 user=postgres') table_params = {'table': 'gauges', 'unique_id': 'id', 'timestamp': None, 'insert_only': False} dbst = DBSyncTable(**table_params) ins, upd = dbst.perform_sync(db_master_conn, db_slave_conn) table_params = {'table': 'gauges_daily', 'unique_id': None, 'timestamp': 'date', 'insert_only': True} dbst = DBSyncTable(**table_params) ins, upd = dbst.perform_sync(db_master_conn, db_slave_conn)