Branch: Tag:

2014-11-13

2014-11-13 14:39:04 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Reset session urgently and deadlockfree.

1349:    resync();   }    + private void reset_dbsession() { +  big_query("ROLLBACK"); +  big_query("RESET ALL"); +  big_query("CLOSE ALL"); +  big_query("DISCARD TEMP"); + } +    private void resync_cb() {    switch(backendstatus) {    case 'T':case 'E':
1356:    m_delete(tp,"datatypeoid");    m_delete(tp,"datarowdesc");    } -  big_query("ROLLBACK"); -  big_query("RESET ALL"); -  big_query("CLOSE ALL"); -  big_query("DISCARD TEMP"); +  Thread.Thread(reset_dbsession); // Urgently and deadlockfree    }   }